aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
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 {