From 4574f1d7bd531079a0bc9ed0116dd89d3fae0690 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sun, 5 Jan 2003 20:06:32 +0000 Subject: [PATCH] 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 --- xwin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xwin.c b/xwin.c index 3867fb4..7a82c09 100644 --- a/xwin.c +++ b/xwin.c @@ -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;