X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=inline;f=openbox%2Ffocus.c;h=40e18872f6adc0189113c5bee72d94dc970fe0e7;hb=912f8eed504c2a49c700b345d4171c3c2cdb0df7;hp=42241224534e35fc07f021b0c4f86d4d0d1705c3;hpb=eb09b1873d731a0e7290334a832a76cb233f34a7;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 42241224..40e18872 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -186,12 +186,8 @@ void focus_nothing() screen_install_colormap(NULL, TRUE); } - /* Don't set focus_client to NULL here. It will be set to NULL when the - FocusOut event comes. Otherwise, if we focus nothing and then focus the - same window again, The focus code says nothing changed, but focus_client - ends up being NULL anyways. - focus_client = NULL; - */ + /* nothing is focused, update the colormap and _the root property_ */ + focus_set_client(NULL); /* if there is a grab going on, then we need to cancel it. if we move focus during the grab, applications will get NotifyWhileGrabbed events