From 47ada4d79844d9a98d9689d0de0c92864e0fc372 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 20 Jan 2025 23:11:00 +0100 Subject: Add option to save replay with controller (double-click share button), allow prime-run on wayland --- src/GlobalHotkeysX11.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/GlobalHotkeysX11.cpp') diff --git a/src/GlobalHotkeysX11.cpp b/src/GlobalHotkeysX11.cpp index 2943397..c8d198c 100644 --- a/src/GlobalHotkeysX11.cpp +++ b/src/GlobalHotkeysX11.cpp @@ -138,6 +138,9 @@ namespace gsr { } void GlobalHotkeysX11::poll_events() { + if(!dpy) + return; + while(XPending(dpy)) { XNextEvent(dpy, &xev); if(xev.type == KeyPress) { -- cgit v1.2.3