From c2682cf299aef5f79cf53f7d905459aa371769af Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 1 Apr 2024 19:36:14 +0200 Subject: NXevents.c: add/improve comments --- nx-X11/programs/Xserver/hw/nxagent/NXevents.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'nx-X11') diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXevents.c b/nx-X11/programs/Xserver/hw/nxagent/NXevents.c index aca46e10a..68fb3f412 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXevents.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXevents.c @@ -278,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)) { /* @@ -349,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)) -- cgit v1.2.3