focus fullscreen window if not focused when mouse moves, it seems some display managers don't focus new windows, this will provides a way to fucus it
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@287 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
d86640d93c
commit
4574f1d7bd
3
xwin.c
3
xwin.c
@ -607,6 +607,9 @@ xwin_process_events(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MotionNotify:
|
case MotionNotify:
|
||||||
|
if (fullscreen && !focused)
|
||||||
|
XSetInputFocus(display, wnd, RevertToPointerRoot,
|
||||||
|
CurrentTime);
|
||||||
rdp_send_input(time(NULL), RDP_INPUT_MOUSE,
|
rdp_send_input(time(NULL), RDP_INPUT_MOUSE,
|
||||||
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
|
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user