diff options
Diffstat (limited to 'src/core/keybindings.c')
-rw-r--r-- | src/core/keybindings.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 8006c9e1..3a54ca0d 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -3090,8 +3090,9 @@ handle_toggle_tiled (MetaDisplay *display, { MetaTileMode mode = binding->handler->data; - if ((META_WINDOW_TILED_LEFT (window) && mode == META_TILE_LEFT) || - (META_WINDOW_TILED_RIGHT (window) && mode == META_TILE_RIGHT)) + if (mode == window->tile_mode && + window->maximized_vertically && + !window->maximized_horizontally) { if (window->saved_maximize) { |