X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=345eb1f2b9908b7fe13fd0a636b1d368b4d27434;hb=4b421dc811d01d7eb0b40edae5513ebdef9da440;hp=765c4b59bca0e1473ad993872ebb7d897af117f7;hpb=5cf61ee02354c1c9f80c11f3796afc4b948055d6;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index 765c4b59..345eb1f2 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -119,9 +119,9 @@ Frame *frame_new() self->iconify = createWindow(self->title, mask, &attrib); self->handle = createWindow(self->window, mask, &attrib); mask |= CWCursor; - attrib.cursor = ob_cursors.ll_angle; + attrib.cursor = ob_cursors.bl; self->lgrip = createWindow(self->handle, mask, &attrib); - attrib.cursor = ob_cursors.lr_angle; + attrib.cursor = ob_cursors.br; self->rgrip = createWindow(self->handle, mask, &attrib); /* the other stuff is shown based on decor settings */ @@ -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;