proper handling of the plate though, too

This commit is contained in:
Dana Jansens 2007-04-24 20:48:28 +00:00
parent d3ca984e93
commit 1582b36187

View file

@ -828,7 +828,7 @@ ObFrameContext frame_context(ObClient *client, Window win)
} }
self = client->frame; self = client->frame;
if (win == self->inner) { if (win == self->inner || win == self->plate) {
/* conceptually, this is the desktop, as far as users are /* conceptually, this is the desktop, as far as users are
concerned */ concerned */
if (client->type == OB_CLIENT_TYPE_DESKTOP) if (client->type == OB_CLIENT_TYPE_DESKTOP)
@ -836,7 +836,6 @@ ObFrameContext frame_context(ObClient *client, Window win)
return OB_FRAME_CONTEXT_CLIENT; return OB_FRAME_CONTEXT_CLIENT;
} }
if (win == self->plate) return OB_FRAME_CONTEXT_CLIENT;
if (win == self->window) return OB_FRAME_CONTEXT_FRAME; if (win == self->window) return OB_FRAME_CONTEXT_FRAME;
if (win == self->title) return OB_FRAME_CONTEXT_TITLEBAR; if (win == self->title) return OB_FRAME_CONTEXT_TITLEBAR;
if (win == self->label) return OB_FRAME_CONTEXT_TITLEBAR; if (win == self->label) return OB_FRAME_CONTEXT_TITLEBAR;