X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=e5640256689949044a8c9f7b02dfda77b5043746;hb=3a607fad9df628ab16e0f7436dfbfc9b22634003;hp=f999a34b1dddf7dd32e828f6457747d38bc5c389;hpb=c9ef2f0118297201729b517a87590729125bb608;p=chaz%2Fopenbox diff --git a/openbox/screen.c b/openbox/screen.c index f999a34b..e5640256 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -398,7 +398,6 @@ void screen_set_desktop(guint num) { GList *it; guint old; - XEvent e; g_assert(num < screen_num_desktops); @@ -435,18 +434,6 @@ void screen_set_desktop(guint num) frame_hide(c->frame); } } - - XSync(ob_display, FALSE); - /* focus the last focused window on the desktop, and ignore enter events - from the switch so it doesnt mess with the focus */ - while (XCheckTypedEvent(ob_display, EnterNotify, &e)); -#ifdef DEBUG_FOCUS - ob_debug("switch fallback\n"); -#endif - focus_fallback(OB_FOCUS_FALLBACK_DESKTOP); -#ifdef DEBUG_FOCUS - ob_debug("/switch fallback\n"); -#endif } static void get_row_col(guint d, guint *r, guint *c)