]> git.sur5r.net Git - i3/i3/commitdiff
Revert "Bugfix: Set input focus with last timestamp"
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 22 Nov 2014 23:35:57 +0000 (00:35 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 22 Nov 2014 23:36:09 +0000 (00:36 +0100)
This reverts commit 9cee8dac5e9057bf2cb72edc3cf398fdc08b8d73.

fixes #1383

src/x.c

diff --git a/src/x.c b/src/x.c
index 6d836a7bd445aeaa4769084b51ada866093d880f..b39c19d002f2515d7dd1843b640ea047dac4dc4a 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -1023,7 +1023,7 @@ void x_push_changes(Con *con) {
                     values[0] = CHILD_EVENT_MASK & ~(XCB_EVENT_MASK_FOCUS_CHANGE);
                     xcb_change_window_attributes(conn, focused->window->id, XCB_CW_EVENT_MASK, values);
                 }
-                xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, to_focus, last_timestamp);
+                xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, to_focus, XCB_CURRENT_TIME);
                 if (focused->window != NULL) {
                     values[0] = CHILD_EVENT_MASK;
                     xcb_change_window_attributes(conn, focused->window->id, XCB_CW_EVENT_MASK, values);
@@ -1041,7 +1041,7 @@ void x_push_changes(Con *con) {
 
     if (focused_id == XCB_NONE) {
         DLOG("Still no window focused, better set focus to the root window\n");
-        xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, root, last_timestamp);
+        xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, root, XCB_CURRENT_TIME);
         ewmh_update_active_window(XCB_WINDOW_NONE);
         focused_id = root;
     }