X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=a4090b0c4d5a210d5cd0dd9b1b194e8803de2511;hb=a3f8c5c45a1ff323fc088cc5af49ab48d5679e54;hp=ace3e86177821978ed41e606cf87c955992855e8;hpb=f2e88d24910c1c4a8e6c0f89770a6abd36b6fbab;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index ace3e861..a4090b0c 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -43,7 +43,6 @@ #include "translate.h" #include -#include #include #include @@ -677,7 +676,7 @@ void event_enter_client(ObClient *client) { g_assert(config_focus_follow); - if (client_normal(client) && client_can_focus(client)) { + if (client_enter_focusable(client) && client_can_focus(client)) { if (config_focus_delay) { ObFocusDelayData *data; @@ -1025,7 +1024,7 @@ static void event_handle_client(ObClient *client, XEvent *e) if ((unsigned)e->xclient.data.l[0] < screen_num_desktops || (unsigned)e->xclient.data.l[0] == DESKTOP_ALL) client_set_desktop(client, (unsigned)e->xclient.data.l[0], - FALSE, FALSE); + FALSE); } else if (msgtype == prop_atoms.net_wm_state) { /* can't compress these */ ob_debug("net_wm_state %s %ld %ld for 0x%lx\n",