summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormarkt <markt>2006-07-20 10:22:31 (GMT)
committermarkt <markt>2006-07-20 10:22:31 (GMT)
commit25a9a3158530075b606dc9ba28b7a30d64d624e2 (patch)
tree7b69f3cbda07ec2d5099b11ff43d771d16abc6a3 /src
parentf9ade8947c08a7f1a4485b44da2403a55a3c04e1 (diff)
downloadfluxbox_lack-25a9a3158530075b606dc9ba28b7a30d64d624e2.zip
fluxbox_lack-25a9a3158530075b606dc9ba28b7a30d64d624e2.tar.bz2
fix _NET_WM_MOVERESIZE to interpret x_root and y_root correctly
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: