Merge pull request #2044 from RonYaari/master

X11: fix toggle-fullscreen option functionality
This commit is contained in:
Marc-André Moreau 2014-08-18 13:06:10 -04:00
commit fdbb01eee6

View File

@ -405,14 +405,17 @@ BOOL xf_keyboard_handle_special_keys(xfContext* xfc, KeySym keysym)
return TRUE;
}
if (keysym == XK_Return)
if(xfc->fullscreen_toggle)
{
if (mod.Ctrl && mod.Alt)
{
/* Ctrl-Alt-Enter: toggle full screen */
xf_toggle_fullscreen(xfc);
return TRUE;
}
if (keysym == XK_Return)
{
if (mod.Ctrl && mod.Alt)
{
/* Ctrl-Alt-Enter: toggle full screen */
xf_toggle_fullscreen(xfc);
return TRUE;
}
}
}
if ((keysym == XK_c) || (keysym == XK_C))