diff options
author | wm4 <wm4@nowhere> | 2014-03-18 20:38:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-18 20:43:45 +0100 |
commit | 19f101db680f966a6e56035a16784541be390982 (patch) | |
tree | 28cbf61aa9d0c2ec05f141c79022cc90a5883ec5 /audio/chmap_sel.c | |
parent | 4751fe408be9c1278149e234f45570b70f4a57ce (diff) | |
download | mpv-19f101db680f966a6e56035a16784541be390982.tar.bz2 mpv-19f101db680f966a6e56035a16784541be390982.tar.xz |
x11: implement window dragging by grabbing
We don't check whether the WM supports _NET_WM_MOVERESIZE_MOVE, but
if it doesn't, nothing bad happens. There might be a race condition
when pressing a button, and then moving the mouse and releasing the
button at the same time; then the WM might get the message to initiate
moving the window after the mouse button has been released, in which
case the result will probably be annoying. This could possibly be fixed
by sending _NET_WM_MOVERESIZE_CANCEL on button release, but on the
other hand, we probably won't receive a button release event in this
situation, so ignore this problem.
The dragging is initiated only when moving the mouse pointer after a
click in order to reduce annoying behavior when the user is e.g.
doubleclicking.
Closes #608.
Diffstat (limited to 'audio/chmap_sel.c')
0 files changed, 0 insertions, 0 deletions