Skip to content

Commit

Permalink
simplified hotkey logic
Browse files Browse the repository at this point in the history
  • Loading branch information
henkman committed May 28, 2015
1 parent 6ba4944 commit 98eae3f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions virgo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 98eae3f

Please sign in to comment.