all repos — openbox @ fa05dc56ea0bf29100efd2cb4399d8f4818f73e7

openbox fork - make it a bit more like ryudo

give the grips cursors
Dana Jansens danakj@orodu.net
commit

fa05dc56ea0bf29100efd2cb4399d8f4818f73e7

parent

bdc491ccfe71ce29a5a1ea813da4b1c66e2fa330

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M otk/widget.hhotk/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.ccsrc/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");