devdraw: full-screen cleanup

This commit is contained in:
Russ Cox 2008-01-30 12:03:11 -05:00
parent e601e525de
commit c155dcfeb7
3 changed files with 16 additions and 1 deletions

View file

@ -536,7 +536,7 @@ runxevent(XEvent *xev)
XLookupString((XKeyEvent*)xev, NULL, 0, &k, NULL);
if(k == XK_F11){
fullscreen = !fullscreen;
_xresizewindow(fullscreen ? screenrect : windowrect);
_xmovewindow(fullscreen ? screenrect : windowrect);
return;
}
if((c = _xtoplan9kbd(xev)) < 0)