summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-09-24 18:30:44 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-09-24 18:30:44 +0200
commit3308bc2bc919cb8fadddad04e48b94d4e9324a34 (patch)
treecc09f134cb72ac0d9ec9d7a34aa76a16fe7a73c7 /video
parentd4bdcdfe09668d2a5cc25f800288cc8c4d8afb2c (diff)
downloadmpv-3308bc2bc919cb8fadddad04e48b94d4e9324a34.tar.bz2
mpv-3308bc2bc919cb8fadddad04e48b94d4e9324a34.tar.xz
wayland: remove moving window by grabbing
Moving the window was convenient but generates a MOUSE_LEAVE event which it shouldn't. Now we remove it, because it is still possible to move the window in weston with MOD+BTN0.
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 109e2dc4b0..e486933e86 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -315,7 +315,6 @@ 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);
}
@@ -354,9 +353,6 @@ 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,