diff options
author | Rafal Mielniczuk <rafal.mielniczuk2@gmail.com> | 2013-03-11 19:26:55 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-19 14:06:57 -0400 |
commit | fc22be0bb9bdb2f8cca93f2cbe69b83b88bf3cdc (patch) | |
tree | 7543763434860343ede9b281ffd39d8e7a240318 /clients | |
parent | fffdcdd654b71e70edb870a8ba75a326b30bc5d3 (diff) |
window: save allocation only for toplevel window
Thanks to that we will not overwrite saved allocation, when going
fullscreen from maximized state
Diffstat (limited to 'clients')
-rw-r--r-- | clients/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clients/window.c b/clients/window.c index 249ba6f4..3e8225f4 100644 --- a/clients/window.c +++ b/clients/window.c @@ -3398,8 +3398,10 @@ window_set_fullscreen(struct window *window, int fullscreen) return; if (fullscreen) { + if (window->type == TYPE_TOPLEVEL) { + window->saved_allocation = window->main_surface->allocation; + } window->type = TYPE_FULLSCREEN; - window->saved_allocation = window->main_surface->allocation; wl_shell_surface_set_fullscreen(window->shell_surface, window->fullscreen_method, 0, NULL); |