summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Ewmh.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 78a2b3c..30fee85 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -891,9 +891,13 @@ bool Ewmh::checkClientMessage(const XClientMessageEvent &ce,
891 case _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT: 891 case _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT:
892 case _NET_WM_MOVERESIZE_SIZE_LEFT: 892 case _NET_WM_MOVERESIZE_SIZE_LEFT:
893 case _NET_WM_MOVERESIZE_SIZE_KEYBOARD: 893 case _NET_WM_MOVERESIZE_SIZE_KEYBOARD:
894 winclient->fbwindow()->startResizing(ce.data.l[0], ce.data.l[1], 894 // startResizing uses relative coordinates
895 static_cast<FluxboxWindow::ResizeDirection> 895 winclient->fbwindow()->startResizing(ce.data.l[0] -
896 (ce.data.l[2])); 896 winclient->fbwindow()->x() -
897 winclient->fbwindow()->frame().window().borderWidth(),
898 ce.data.l[1] - winclient->fbwindow()->y() -
899 winclient->fbwindow()->frame().window().borderWidth(),
900 static_cast<FluxboxWindow::ResizeDirection>(ce.data.l[2]));
897 break; 901 break;
898 case _NET_WM_MOVERESIZE_MOVE: 902 case _NET_WM_MOVERESIZE_MOVE:
899 case _NET_WM_MOVERESIZE_MOVE_KEYBOARD: 903 case _NET_WM_MOVERESIZE_MOVE_KEYBOARD: