Fullscreen only when pressing F11

Make F11 only go fullscreen when no other modifier such as shift/ctrl is
pressed.
This commit is contained in:
Nico Tonnhofer 2019-03-01 14:39:52 +01:00 committed by Jelle van der Waa
parent 470631b0b7
commit 5ae8b0f383
1 changed files with 1 additions and 1 deletions

View File

@ -809,7 +809,7 @@ gboolean window_state_cb(GtkWindow *, GdkEventWindowState *event, keybind_info *
gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info) {
const guint modifiers = event->state & gtk_accelerator_get_default_mod_mask();
if (info->config.fullscreen && event->keyval == GDK_KEY_F11) {
if (info->config.fullscreen && event->keyval == GDK_KEY_F11 && !modifiers) {
info->fullscreen_toggle(info->window);
return TRUE;
}