]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
raise menus above clients.
[chaz/openbox] / openbox / frame.c
index 765c4b59bca0e1473ad993872ebb7d897af117f7..a223aa5eead7686894bb0e1690e5174becb10552 100644 (file)
@@ -646,12 +646,15 @@ Context frame_context_from_string(char *name)
     return Context_None;
 }
 
-Context frame_context(Frame *self, Window win)
+Context frame_context(Client *client, Window win)
 {
+    Frame *self;
+
     if (win == ob_root) return Context_Root;
-    if (self == NULL) return Context_None;
-    if (win == self->client->window) return Context_Client;
+    if (client == NULL) return Context_None;
+    if (win == client->window) return Context_Client;
 
+    self = client->frame;
     if (win == self->window) return Context_Frame;
     if (win == self->plate)  return Context_Client;
     if (win == self->title)  return Context_Titlebar;
This page took 0.020708 seconds and 4 git commands to generate.