From 98eae3f08ea07336f352a20b09b92ce38f2257b3 Mon Sep 17 00:00:00 2001 From: papplampe Date: Thu, 28 May 2015 19:16:57 +0200 Subject: [PATCH] simplified hotkey logic --- virgo.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/virgo.c b/virgo.c index 47e0b28..e0b7665 100644 --- a/virgo.c +++ b/virgo.c @@ -311,12 +311,10 @@ void __main(void) } if(msg.wParam == NUM_DESKTOPS*2+1) { virgo_toggle_hotkeys(&v); - } else if(v.handle_hotkeys) { - if(msg.wParam%2 == 0) { - virgo_go_to_desk(&v, msg.wParam/2); - } else { - virgo_move_to_desk(&v, (msg.wParam-1)/2); - } + } else if(msg.wParam%2 == 0) { + virgo_go_to_desk(&v, msg.wParam/2); + } else { + virgo_move_to_desk(&v, (msg.wParam-1)/2); } } virgo_deinit(&v);