X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=e2e141dd6d7e194943e25e0b59b50d4d879fe868;hb=122d55fbadea0409fbc902a1740e1c8ff3aecd88;hp=c9b05a514013aba8eab10346a118224c012e1a5a;hpb=4736c257a54409bf3b0ef0d803da650c71684dee;p=chaz%2Fopenbox diff --git a/openbox/screen.c b/openbox/screen.c index c9b05a51..e2e141dd 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -346,9 +346,13 @@ void screen_set_desktop(guint num) /* 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 g_message("switch fallback"); - focus_fallback(Fallback_Desktop); +#endif + focus_fallback(OB_FOCUS_FALLBACK_DESKTOP); +#ifdef DEBUG_FOCUS g_message("/switch fallback"); +#endif dispatch_ob(Event_Ob_Desktop, num, old); } @@ -489,7 +493,7 @@ void screen_show_desktop(gboolean show) client_focus(it->data)) break; } else { - focus_fallback(Fallback_NoFocus); + focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS); } show = !!show; /* make it boolean */