From 92a6b897a047054d8fabc8fdee9233a555accb11 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 15 Sep 2003 07:47:05 +0000 Subject: remove focusLast and focusLastOnDesktop --- openbox/screen.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'openbox/screen.c') 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) -- cgit v1.2.3