summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-04 03:47:59 +0000
committerDana Jansens <danakj@orodu.net>2002-12-04 03:47:59 +0000
commitfa05dc56ea0bf29100efd2cb4399d8f4818f73e7 (patch)
tree917fdd638e6f9381a4c63007fa9739edb7f3c6d9
parentbdc491ccfe71ce29a5a1ea813da4b1c66e2fa330 (diff)
give the grips cursors
-rw-r--r--otk/widget.hh4
-rw-r--r--src/frame.cc3
2 files changed, 7 insertions, 0 deletions
diff --git a/otk/widget.hh b/otk/widget.hh
index 2e58cc99..57973e9b 100644
--- a/otk/widget.hh
+++ b/otk/widget.hh
@@ -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)
diff --git a/src/frame.cc b/src/frame.cc
index 6107d779..339aa68b 100644
--- a/src/frame.cc
+++ b/src/frame.cc
@@ -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");