unbreak ^C and make window rotation use the right bindings

This commit is contained in:
Kevin Lange 2014-04-15 23:26:27 -07:00
parent 9b3cfc7fe6
commit 2cd36c2edf

View File

@ -712,6 +712,7 @@ static void handle_key_event(yutani_globals_t * yg, struct yutani_msg_key_event
if (focused) {
if ((ke->event.action == KEY_ACTION_DOWN) &&
(ke->event.modifiers & KEY_MOD_LEFT_CTRL) &&
(ke->event.modifiers & KEY_MOD_LEFT_SHIFT) &&
(ke->event.keycode == 'z')) {
mark_window(yg,focused);
focused->rotation -= 5;
@ -720,6 +721,7 @@ static void handle_key_event(yutani_globals_t * yg, struct yutani_msg_key_event
}
if ((ke->event.action == KEY_ACTION_DOWN) &&
(ke->event.modifiers & KEY_MOD_LEFT_CTRL) &&
(ke->event.modifiers & KEY_MOD_LEFT_SHIFT) &&
(ke->event.keycode == 'x')) {
mark_window(yg,focused);
focused->rotation += 5;
@ -728,6 +730,7 @@ static void handle_key_event(yutani_globals_t * yg, struct yutani_msg_key_event
}
if ((ke->event.action == KEY_ACTION_DOWN) &&
(ke->event.modifiers & KEY_MOD_LEFT_CTRL) &&
(ke->event.modifiers & KEY_MOD_LEFT_SHIFT) &&
(ke->event.keycode == 'c')) {
mark_window(yg,focused);
focused->rotation = 0;