diff --git a/src/x11/meta-x11-display.c b/src/x11/meta-x11-display.c index 9fb3853bd..92ecb89da 100644 --- a/src/x11/meta-x11-display.c +++ b/src/x11/meta-x11-display.c @@ -1934,10 +1934,10 @@ meta_x11_display_set_input_focus_xwindow (MetaX11Display *x11_display, { gulong serial; - meta_display_unset_input_focus (x11_display->display, timestamp); serial = XNextRequest (x11_display->xdisplay); meta_x11_display_set_input_focus_internal (x11_display, window, timestamp); meta_x11_display_update_focus_window (x11_display, window, serial, TRUE); + meta_display_unset_input_focus (x11_display->display, timestamp); } static MetaX11DisplayLogicalMonitorData *