Skip to content

Commit

Permalink
nxagent: move atom initiatialization to Init.c
Browse files Browse the repository at this point in the history
is not dependent on any root window and need only be called once on
startup.
  • Loading branch information
uli42 committed Sep 1, 2019
1 parent 047ab33 commit 9ee3a20
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nx-X11/programs/Xserver/hw/nxagent/Atoms.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void nxagentWMDetect()
finishWMDetection(verbose);
}

int nxagentInitAtoms(WindowPtr pWin)
int nxagentInitAtoms(void)
{
Atom atom;

Expand Down
2 changes: 1 addition & 1 deletion nx-X11/programs/Xserver/hw/nxagent/Atoms.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern Bool nxagentWMIsRunning;
* to the agent server.
*/

int nxagentInitAtoms(WindowPtr pWin);
int nxagentInitAtoms(void);

/*
* Query and create all the required atoms
Expand Down
3 changes: 3 additions & 0 deletions nx-X11/programs/Xserver/hw/nxagent/Init.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ is" without express or implied warranty.
#include "Millis.h"
#include "Error.h"
#include "Keystroke.h"
#include "Atoms.h"

#include <nx/NX.h>
#include "compext/Compext.h"
Expand Down Expand Up @@ -421,6 +422,8 @@ FIXME: These variables, if not removed at all because have probably
#ifdef NXAGENT_CLIPBOARD
AddCallback(&SelectionCallback, nxagentSetSelectionCallback, NULL);
#endif

nxagentInitAtoms();
}

void
Expand Down
2 changes: 0 additions & 2 deletions nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ InitRootWindow(WindowPtr pWin)
fprintf(stderr, "InitRootWindow: Mapping default windows.\n");
#endif

nxagentInitAtoms(pWin);

nxagentInitClipboard(pWin);

nxagentMapDefaultWindows();
Expand Down

0 comments on commit 9ee3a20

Please sign in to comment.