From: Dana Jansens Date: Sat, 2 Aug 2003 06:40:01 +0000 (+0000) Subject: the grips go below the titlebar buttons X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=441041d17d154b92e676da540a99fa16c7d864e9;p=chaz%2Fopenbox the grips go below the titlebar buttons --- diff --git a/openbox/frame.c b/openbox/frame.c index 7e82788a..4317f919 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -51,6 +51,14 @@ ObFrame *frame_new() mask = CWEventMask; attrib.event_mask = ELEMENT_EVENTMASK; self->title = createWindow(self->window, mask, &attrib); + + mask |= CWCursor; + attrib.cursor = ob_cursor(OB_CURSOR_NORTHWEST); + self->tlresize = createWindow(self->title, mask, &attrib); + attrib.cursor = ob_cursor(OB_CURSOR_NORTHEAST); + self->trresize = createWindow(self->title, mask, &attrib); + + mask &= ~CWCursor; self->label = createWindow(self->title, mask, &attrib); self->max = createWindow(self->title, mask, &attrib); self->close = createWindow(self->title, mask, &attrib); @@ -59,15 +67,12 @@ ObFrame *frame_new() self->icon = createWindow(self->title, mask, &attrib); self->iconify = createWindow(self->title, mask, &attrib); self->handle = createWindow(self->window, mask, &attrib); + mask |= CWCursor; attrib.cursor = ob_cursor(OB_CURSOR_SOUTHWEST); self->lgrip = createWindow(self->handle, mask, &attrib); attrib.cursor = ob_cursor(OB_CURSOR_SOUTHEAST); self->rgrip = createWindow(self->handle, mask, &attrib); - attrib.cursor = ob_cursor(OB_CURSOR_NORTHWEST); - self->tlresize = createWindow(self->title, mask, &attrib); - attrib.cursor = ob_cursor(OB_CURSOR_NORTHEAST); - self->trresize = createWindow(self->title, mask, &attrib); self->focused = FALSE;