From e769b0e2d5dc84b4e7ee1ae7d732b5467a1c4b8b Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Fri, 19 Sep 2025 16:45:13 +0200 Subject: [PATCH] only handle button 1 ButtonPress events in WindowHandlePlayerEvent --- application/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/window.c b/application/window.c index efdf2a0..4d43cc3 100644 --- a/application/window.c +++ b/application/window.c @@ -233,7 +233,7 @@ void WindowHandlePlayerEvent(MainWindow *win, XEvent *event) { win->pwbuttonpressed = FALSE; } - } else if(etype == ButtonPress) { + } else if(etype == ButtonPress && event->xbutton.button == 1) { Time t = event->xbutton.time; int yi = win->player_widget->core.height - event->xbutton.y; @@ -249,7 +249,7 @@ void WindowHandlePlayerEvent(MainWindow *win, XEvent *event) { } win->pwbuttonpressed = 1; } - } else if(etype == ButtonRelease) { + } else if(etype == ButtonRelease && event->xbutton.button == 1) { win->player_event_time = event->xbutton.time; win->pwbuttonpressed = FALSE; } -- 2.47.3