X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fclient.c;h=643cf60b771591efc0a55293b353878c294a1497;hb=242dc35a36b0056029adb4b702ed0b7ffe12feae;hp=a17c73daaa43d92100a41c1dffa8d519457639a2;hpb=f9c659c12c7f387133b76a89e38dd48bba1b8172;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index a17c73da..643cf60b 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1747,7 +1747,7 @@ gboolean client_should_show(ObClient *self) { if (self->iconic) return FALSE; else if (!(self->desktop == screen_desktop || - self->desktop == DESKTOP_ALL)) return FALSE; + self->desktop == DESKTOP_ALL)) return FALSE; else if (client_normal(self) && screen_showing_desktop) return FALSE; return TRUE; @@ -2552,10 +2552,7 @@ gboolean client_can_focus(ObClient *self) if (!self->frame->visible) return FALSE; - if (!((self->can_focus || self->focus_notify) && - (self->desktop == screen_desktop || - self->desktop == DESKTOP_ALL) && - !self->iconic)) + if (!(self->can_focus || self->focus_notify)) return FALSE; /* do a check to see if the window has already been unmapped or destroyed @@ -3175,7 +3172,7 @@ ObClient* client_under_pointer() for (it = stacking_list; it != NULL; it = it->next) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = WINDOW_AS_CLIENT(it->data); - if (c->desktop == screen_desktop && + if (c->frame->visible && RECT_CONTAINS(c->frame->area, x, y)) { ret = c; break;