make the handle resize by default, and give the handle the resize south cursor
Dana Jansens danakj@orodu.net
2 files changed,
3 insertions(+),
8 deletions(-)
M
data/rc.xml
→
data/rc.xml
@@ -258,16 +258,10 @@ </mousebind>
</context> <context name="Handle"> <mousebind button="Left" action="Drag"> - <action name="Move"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="Raise"/> + <action name="Resize"><edge>bottom</edge></action> </mousebind> <mousebind button="Left" action="Press"> <action name="Focus"/> - </mousebind> - <mousebind button="Middle" action="Press"> - <action name="Lower"/> </mousebind> </context> <context name="BLCorner">
M
openbox/frame.c
→
openbox/frame.c
@@ -154,9 +154,10 @@ self->desk = createWindow(self->title, NULL, mask, &attrib);
self->shade = createWindow(self->title, NULL, mask, &attrib); self->icon = createWindow(self->title, NULL, mask, &attrib); self->iconify = createWindow(self->title, NULL, mask, &attrib); - self->handle = createWindow(self->window, NULL, mask, &attrib); mask |= CWCursor; + attrib.cursor = ob_cursor(OB_CURSOR_SOUTH); + self->handle = createWindow(self->window, NULL, mask, &attrib); attrib.cursor = ob_cursor(OB_CURSOR_SOUTHWEST); self->lgrip = createWindow(self->handle, NULL, mask, &attrib); attrib.cursor = ob_cursor(OB_CURSOR_SOUTHEAST);