diff --git a/src/x11/meta-x11-display.c b/src/x11/meta-x11-display.c index 3ae5b3d8d..1aebaa961 100644 --- a/src/x11/meta-x11-display.c +++ b/src/x11/meta-x11-display.c @@ -1928,10 +1928,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 *