make the handle resize by default, and give the handle the resize south cursor
authorDana Jansens <danakj@orodu.net>
Sat, 12 May 2007 17:32:10 +0000 (17:32 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 12 May 2007 17:32:10 +0000 (17:32 +0000)
data/rc.xml
openbox/frame.c

index a224f6b..bda1ca8 100644 (file)
   </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">
     <mousebind button="Left" action="Drag">
index 6248db7..716d23a 100644 (file)
@@ -154,9 +154,10 @@ ObFrame *frame_new(ObClient *client)
     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);