From 89fbdcfa0963b58de14951cc1ad22ab46590bee0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 11 Jul 2020 18:54:56 +0200 Subject: Only compress events from target window --- src/QuickMedia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index a8a3ddc..47b027e 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -962,7 +962,7 @@ namespace QuickMedia { } if(video_player_window && XCheckTypedWindowEvent(disp, video_player_window, MotionNotify, &xev)) { - while(XCheckTypedEvent(disp, MotionNotify, &xev)); + while(XCheckTypedWindowEvent(disp, video_player_window, MotionNotify, &xev)); cursor_hide_timer.restart(); if(!cursor_visible) window.setMouseCursorVisible(true); -- cgit v1.2.3