summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/keybindings.c5
-rw-r--r--src/core/window-private.h2
2 files changed, 4 insertions, 3 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)
{
diff --git a/src/core/window-private.h b/src/core/window-private.h
index 8ab35718..0d744faf 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -408,7 +408,7 @@ struct _MetaWindow
(w)->tile_mode == META_TILE_LEFT)
#define META_WINDOW_TILED_RIGHT(w) (META_WINDOW_SIDE_TILED(w) && \
(w)->tile_mode == META_TILE_RIGHT)
-#define META_WINDOW_QUARTER_TILED(w) (!(w)->maximized_vertically && \
+#define META_WINDOW_QUARTER_TILED(w) ((w)->maximized_vertically && \
!(w)->maximized_horizontally && \
((w)->tile_mode == META_TILE_BOTTOM_RIGHT || \
(w)->tile_mode == META_TILE_BOTTOM_LEFT || \