terminal: Don't queue a resize after setting fullscreen
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 28 Feb 2012 14:17:32 +0000 (09:17 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 28 Feb 2012 14:23:23 +0000 (09:23 -0500)
We end up doing an attach at the non-fullscreen size before resizing to
fullscreen, causing the terminal to jump to the center for a frame before we
render the fullscreen image.

clients/terminal.c

index e57a77d..65fec38 100644 (file)
@@ -2089,7 +2089,6 @@ key_handler(struct window *window, struct input *input, uint32_t time,
                        break;
                terminal->fullscreen ^= 1;
                window_set_fullscreen(window, terminal->fullscreen);
-               window_schedule_redraw(terminal->window);
                break;
 
        case XK_BackSpace: