]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
only grab keybinds on the root window, not every client window
[chaz/openbox] / openbox / frame.c
index d6e386b326f65c1192c80e66e1a5248601f1e8ba..dc9d16014ecb0f2f4f89db6644a646c1833dece4 100644 (file)
@@ -828,7 +828,7 @@ ObFrameContext frame_context(ObClient *client, Window win)
     }
 
     self = client->frame;
-    if (win == self->inner) {
+    if (win == self->inner || win == self->plate) {
         /* conceptually, this is the desktop, as far as users are
            concerned */
         if (client->type == OB_CLIENT_TYPE_DESKTOP)
@@ -836,7 +836,6 @@ ObFrameContext frame_context(ObClient *client, Window win)
         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->title)     return OB_FRAME_CONTEXT_TITLEBAR;
     if (win == self->label)     return OB_FRAME_CONTEXT_TITLEBAR;
This page took 0.023051 seconds and 4 git commands to generate.