aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-09-18 23:18:20 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-07 00:09:58 (GMT)
commite6e81813677d7c3afb7633aaee322efc8c578a97 (patch)
tree4f006c491f55cba8be052b7cf4f5298e3fab1081 /src
parentc73cbdc8734c4fac4df1dfb895366dcb84bc78a2 (diff)
[media] Don't force focus follows mouse mode for our window, that's up to the window manager to decide
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/xcommon.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/xcommon.c b/src/xcommon.c
index ace0cef..227296b 100644
--- a/src/xcommon.c
+++ b/src/xcommon.c
@@ -1376,7 +1376,6 @@ void xcommon_poll_events( input_t *in )
int reconfigure = 0;
int reconfwidth = 0;
int reconfheight = 0;
- int getfocus = 0;
int motion = 0;
int motion_x = 0;
int motion_y = 0;
@@ -1447,9 +1446,6 @@ void xcommon_poll_events( input_t *in )
XUndefineCursor( display, output_window );
motion_timeout = 30;
break;
- case EnterNotify:
- getfocus = 1;
- break;
case FocusIn:
has_focus = 1;
break;
@@ -1633,7 +1629,6 @@ void xcommon_poll_events( input_t *in )
input_callback( in, I_BUTTONPRESS, event.xbutton.button );
lastpresstime = event.xbutton.time;
}
- getfocus = 1;
break;
case ButtonRelease:
xcommon_update_server_time( event.xbutton.time );
@@ -1641,7 +1636,6 @@ void xcommon_poll_events( input_t *in )
input_callback( in, I_BUTTONRELEASE, event.xbutton.button );
lastreleasetime = event.xbutton.time;
}
- getfocus = 1;
break;
default: break;
}
@@ -1651,10 +1645,6 @@ void xcommon_poll_events( input_t *in )
input_callback( in, I_MOUSEMOVE, ((motion_x & 0xffff) << 16 | (motion_y & 0xffff)) );
}
- if( getfocus ) {
- XSetInputFocus( display, wm_window, RevertToPointerRoot, CurrentTime );
- }
-
if( !has_ewmh_state_fullscreen && output_fullscreen ) {
/**
* We used to check if we still have focus too.

Privacy Policy