the grips go below the titlebar buttons
This commit is contained in:
parent
cb3c457b82
commit
441041d17d
1 changed files with 9 additions and 4 deletions
|
@ -51,6 +51,14 @@ ObFrame *frame_new()
|
||||||
mask = CWEventMask;
|
mask = CWEventMask;
|
||||||
attrib.event_mask = ELEMENT_EVENTMASK;
|
attrib.event_mask = ELEMENT_EVENTMASK;
|
||||||
self->title = createWindow(self->window, mask, &attrib);
|
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->label = createWindow(self->title, mask, &attrib);
|
||||||
self->max = createWindow(self->title, mask, &attrib);
|
self->max = createWindow(self->title, mask, &attrib);
|
||||||
self->close = 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->icon = createWindow(self->title, mask, &attrib);
|
||||||
self->iconify = createWindow(self->title, mask, &attrib);
|
self->iconify = createWindow(self->title, mask, &attrib);
|
||||||
self->handle = createWindow(self->window, mask, &attrib);
|
self->handle = createWindow(self->window, mask, &attrib);
|
||||||
|
|
||||||
mask |= CWCursor;
|
mask |= CWCursor;
|
||||||
attrib.cursor = ob_cursor(OB_CURSOR_SOUTHWEST);
|
attrib.cursor = ob_cursor(OB_CURSOR_SOUTHWEST);
|
||||||
self->lgrip = createWindow(self->handle, mask, &attrib);
|
self->lgrip = createWindow(self->handle, mask, &attrib);
|
||||||
attrib.cursor = ob_cursor(OB_CURSOR_SOUTHEAST);
|
attrib.cursor = ob_cursor(OB_CURSOR_SOUTHEAST);
|
||||||
self->rgrip = createWindow(self->handle, mask, &attrib);
|
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;
|
self->focused = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue