aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/NXevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/NXevents.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXevents.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXevents.c b/nx-X11/programs/Xserver/hw/nxagent/NXevents.c
index 9d3045dc7..68fb3f412 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXevents.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXevents.c
@@ -135,6 +135,7 @@ of the copyright holder.
#include <nx-X11/Xlib.h>
+/* define this to inform dix about having a own implementation of GetXYStartWindow() */
#define XYWINDOWCALLBACK
#include "../../dix/events.c"
@@ -277,12 +278,13 @@ ProcAllowEvents(register ClientPtr client)
/*
* called from XYToWindow to determine where XYToWindow() should start
* going through the list.
+ * XYWINDOWCALLBACK needs to be defined for this to work, see dix/events.c.
+ * It is called from XYtoWindow().
*/
static WindowPtr
GetXYStartWindow(WindowPtr pWin)
{
-
if (nxagentOption(Rootless))
{
/*
@@ -348,10 +350,10 @@ CheckMotion(xEvent *xE)
#ifdef NXAGENT_SERVER
/*
- * This code force cursor position to be inside the
- * root window of the agent. We can't view a reason
- * to do this and it interacts in an undesirable way
- * with toggling fullscreen.
+ * This code forces the cursor position to be inside the root
+ * window of the agent. We can't view a reason to do this and
+ * it interacts in an undesirable way with toggling
+ * fullscreen.
*
* if ((sprite.hotPhys.x != XE_KBPTR.rootX) ||
* (sprite.hotPhys.y != XE_KBPTR.rootY))