diff options
Diffstat (limited to 'plugins/hotkeys/hotkeys.c')
-rw-r--r-- | plugins/hotkeys/hotkeys.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/hotkeys/hotkeys.c b/plugins/hotkeys/hotkeys.c index 42ca7b4d..ca31e1c3 100644 --- a/plugins/hotkeys/hotkeys.c +++ b/plugins/hotkeys/hotkeys.c @@ -410,7 +410,10 @@ static void cleanup () { command_count = 0; #ifndef __APPLE__ - XCloseDisplay (disp); + if (disp) { + XCloseDisplay (disp); + disp = NULL; + } #endif } |