aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-27 18:34:09 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-27 18:34:09 +0200
commitb3c69f4cbfc11b15c2725f5c71465860694d5933 (patch)
tree3e63ab98b2da1be095896eb96f3a3d4ad2d8f4db /src
parentd1805b49acdbd6026da81ef547cc20497c6c6c6e (diff)
Fix quickmedia closing on ctrl+f when viewing a video instead of going into fullscreen mode
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index f11b69f..5d47f89 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -3088,10 +3088,9 @@ namespace QuickMedia {
KeySym pressed_keysym = XKeycodeToKeysym(disp, xev.xkey.keycode, 0);
#pragma GCC diagnostic pop
bool pressing_ctrl = (CLEANMASK(xev.xkey.state) == ControlMask);
- if(pressed_keysym && pressing_ctrl) {
+ if(pressed_keysym == XK_q && pressing_ctrl) {
window.close();
- }
- if(pressed_keysym == XK_Escape || pressed_keysym == XK_q || pressed_keysym == XK_BackSpace) {
+ } else if(pressed_keysym == XK_Escape || pressed_keysym == XK_q || pressed_keysym == XK_BackSpace) {
if(window_is_fullscreen(disp, window.getSystemHandle())) {
window_set_fullscreen(disp, window.getSystemHandle(), WindowFullscreenState::UNSET);
} else {