From d81caf1798335a8e6a4608cf750f1b5f2eddd5a6 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 21 Nov 2020 19:04:38 +0200 Subject: Fixed popups being dismissed by media updates --- src/ui/util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ui/util.c b/src/ui/util.c index c1312062..258da04a 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -367,8 +367,8 @@ iWidget *addAction_Widget(iWidget *parent, int key, int kmods, const char *comma /*-----------------------------------------------------------------------------------------------*/ static iBool isCommandIgnoredByMenus_(const char *cmd) { - return equal_Command(cmd, "media.updated") || equal_Command(cmd, "document.request.updated") || - equal_Command(cmd, "window.resized") || + return equal_Command(cmd, "media.updated") || equal_Command(cmd, "media.player.update") || + equal_Command(cmd, "document.request.updated") || equal_Command(cmd, "window.resized") || (equal_Command(cmd, "mouse.clicked") && !arg_Command(cmd)); /* button released */ } @@ -876,8 +876,8 @@ void updateValueInput_Widget(iWidget *d, const char *title, const char *prompt) static iBool messageHandler_(iWidget *msg, const char *cmd) { /* Almost any command dismisses the sheet. */ - if (!(equal_Command(cmd, "media.updated") || equal_Command(cmd, "document.request.updated") || - startsWith_CStr(cmd, "window."))) { + if (!(equal_Command(cmd, "media.updated") || equal_Command(cmd, "media.player.update") || + equal_Command(cmd, "document.request.updated") || startsWith_CStr(cmd, "window."))) { destroy_Widget(msg); } return iFalse; -- cgit v1.2.3