]> Dogcows Code - chaz/openbox/commitdiff
give the grips cursors
authorDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 03:47:59 +0000 (03:47 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 03:47:59 +0000 (03:47 +0000)
otk/widget.hh
src/frame.cc

index 2e58cc9928459726876bb984822dd56ccbabd117..57973e9b35594b553908e0d534630f9326545608 100644 (file)
@@ -88,6 +88,10 @@ public:
   void setStretchableVert(bool s_vert = true)  { _stretchable_vert = s_vert; }
 
   inline Cursor getCursor(void) const { return _cursor; }
+  void setCursor(Cursor cursor) {
+    _cursor = cursor;
+    XDefineCursor(OBDisplay::display, _window, _cursor);
+  }
 
   inline int getBevelWidth(void) const { return _bevel_width; }
   void setBevelWidth(int bevel_width)
index 6107d779a7e4768107edc8970c1c954d6433bc8b..339aa68b03017bd734fbd7ca54eb3647303b512a 100644 (file)
@@ -51,6 +51,9 @@ OBFrame::OBFrame(OBClient *client, otk::Style *style)
   _grip_right.unmanaged();
   _plate.unmanaged();
 
+  _grip_left.setCursor(Openbox::instance->cursors().ll_angle);
+  _grip_right.setCursor(Openbox::instance->cursors().lr_angle);
+  
   _plate.show();
 
   _button_close.setText("X");
This page took 0.028709 seconds and 4 git commands to generate.