diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-09-24 18:53:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-20 14:11:21 +0200 |
commit | 8e642809bf50dd6fd41075eb71df6990ded131ac (patch) | |
tree | af295fd66d0289ef3946724f138a403551dd2778 /video | |
parent | 8c4cf5ce840da55ee9d8fae927558a3f094f4e0f (diff) | |
download | mpv-8e642809bf50dd6fd41075eb71df6990ded131ac.tar.bz2 mpv-8e642809bf50dd6fd41075eb71df6990ded131ac.tar.xz |
Revert "wayland: remove moving window by grabbing"
This reverts commit 3308bc2bc919cb8fadddad04e48b94d4e9324a34.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/wayland_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index e486933e86..109e2dc4b0 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -315,6 +315,7 @@ static void pointer_handle_enter(void *data, /* Release the left button on pointer enter again * because after moving the shell surface no release event is sent */ + mp_input_put_key(wl->vo->input_ctx, MP_MOUSE_BTN0 | MP_KEY_STATE_UP); show_cursor(wl); } @@ -353,6 +354,9 @@ static void pointer_handle_button(void *data, mp_input_put_key(wl->vo->input_ctx, MP_MOUSE_BTN0 + (button - BTN_LEFT) | ((state == WL_POINTER_BUTTON_STATE_PRESSED) ? MP_KEY_STATE_DOWN : MP_KEY_STATE_UP)); + + if ((button == BTN_LEFT) && (state == WL_POINTER_BUTTON_STATE_PRESSED)) + wl_shell_surface_move(wl->window.shell_surface, wl->input.seat, serial); } static void pointer_handle_axis(void *data, |