Focus upon receiving EnterNotify in fullscreen mode (in lieu of window manager)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@249 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
d2ff846ec5
commit
0b7d2ca0f1
10
xwin.c
10
xwin.c
@ -351,6 +351,8 @@ ui_create_window(void)
|
||||
input_mask |= PointerMotionMask;
|
||||
if (ownbackstore)
|
||||
input_mask |= ExposureMask;
|
||||
if (fullscreen)
|
||||
input_mask |= EnterWindowMask;
|
||||
|
||||
if (IM != NULL)
|
||||
{
|
||||
@ -372,9 +374,6 @@ ui_create_window(void)
|
||||
}
|
||||
while (xevent.type != VisibilityNotify);
|
||||
|
||||
if (fullscreen)
|
||||
XSetInputFocus(display, wnd, RevertToPointerRoot, CurrentTime);
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
@ -531,6 +530,11 @@ xwin_process_events(void)
|
||||
XUngrabKeyboard(display, CurrentTime);
|
||||
break;
|
||||
|
||||
case EnterNotify:
|
||||
/* we only register for this event when in fullscreen mode */
|
||||
XSetInputFocus(display, wnd, RevertToPointerRoot, CurrentTime);
|
||||
break;
|
||||
|
||||
case Expose:
|
||||
XCopyArea(display, backstore, wnd, gc,
|
||||
xevent.xexpose.x, xevent.xexpose.y,
|
||||
|
Loading…
Reference in New Issue
Block a user