give the grips cursors
Dana Jansens danakj@orodu.net
2 files changed,
7 insertions(+),
0 deletions(-)
M
otk/widget.hh
→
otk/widget.hh
@@ -88,6 +88,10 @@ inline bool isStretchableVert(void) const { return _stretchable_vert; }
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)
M
src/frame.cc
→
src/frame.cc
@@ -51,6 +51,9 @@ _grip_left.unmanaged();
_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");