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:
Jay Sorg 2003-01-05 20:06:32 +00:00
parent d86640d93c
commit 4574f1d7bd

3
xwin.c
View File

@ -607,6 +607,9 @@ xwin_process_events(void)
break;
case MotionNotify:
if (fullscreen && !focused)
XSetInputFocus(display, wnd, RevertToPointerRoot,
CurrentTime);
rdp_send_input(time(NULL), RDP_INPUT_MOUSE,
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
break;