X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fscreen.c;h=2cb3cd84c8318e3cfbbc1ba98c8e01ef67eda881;hb=e4911d91c873d554e3418a13778a4ed293431e8c;hp=efab8ddb8376cdaf57b40042f604801922d95d88;hpb=c4e4760c41f10aae6af19a4363cb247c71edee4b;p=chaz%2Fopenbox diff --git a/openbox/screen.c b/openbox/screen.c index efab8ddb..2cb3cd84 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -1,4 +1,4 @@ -/* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*- +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- screen.c for the Openbox window manager Copyright (c) 2003 Ben Jansens @@ -28,6 +28,7 @@ #include "screen.h" #include "client.h" #include "frame.h" +#include "event.h" #include "focus.h" #include "popup.h" #include "extensions.h" @@ -453,8 +454,9 @@ void screen_set_desktop(guint num) } } - if (!focus_client) - focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS); + event_ignore_queued_enters(); + + focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS); } static void get_row_col(guint d, guint *r, guint *c)