x11: Fix last-minute edit bug

dev
Kristian Høgsberg 13 years ago
parent d6e5525a20
commit dcef9ca23c
  1. 6
      compositor/xserver-launcher.c

@ -213,13 +213,13 @@ wlsc_xserver_surface_activate(struct wlsc_surface *surface)
struct wlsc_wm_window *window = get_wm_window(surface);
struct wlsc_xserver *wxs = surface->compositor->wxs;
if (window == NULL && wxs && wxs->wm)
if (window)
wlsc_wm_activate(wxs->wm, window, XCB_TIME_CURRENT_TIME);
else if (wxs && wxs->wm)
xcb_set_input_focus (wxs->wm->conn,
XCB_INPUT_FOCUS_POINTER_ROOT,
XCB_NONE,
XCB_TIME_CURRENT_TIME);
else
wlsc_wm_activate(wxs->wm, window, XCB_TIME_CURRENT_TIME);
}
static void

Loading…
Cancel
Save