diff options
author | Omar Zeidan <[email protected]> | 2017-12-02 20:19:12 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-12-20 20:42:12 +0100 |
commit | b471b912d68a05711a95a3c0e033c0577262f18e (patch) | |
tree | c5af5d07d112d219e7cd7db6ddabcfe12308b4d0 /src/core/constraints.c | |
parent | d094cf0297f28b826ca742379750567750dfee9f (diff) | |
download | marco-b471b912d68a05711a95a3c0e033c0577262f18e.tar.bz2 marco-b471b912d68a05711a95a3c0e033c0577262f18e.tar.xz |
Implemented simple corner tiling by mouse drag
Diffstat (limited to 'src/core/constraints.c')
-rw-r--r-- | src/core/constraints.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/constraints.c b/src/core/constraints.c index 99b0aefa..512e6404 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -795,7 +795,7 @@ constrain_maximization (MetaWindow *window, /* Determine whether constraint applies; exit if it doesn't */ if ((!window->maximized_horizontally && !window->maximized_vertically) || - META_WINDOW_TILED (window)) + META_WINDOW_SIDE_TILED (window)) return TRUE; /* Calculate target_size = maximized size of (window + frame) */ @@ -882,7 +882,7 @@ constrain_tiling (MetaWindow *window, return TRUE; /* Determine whether constraint applies; exit if it doesn't */ - if (!META_WINDOW_TILED (window)) + if (!META_WINDOW_SIDE_TILED (window)) return TRUE; /* Calculate target_size - as the tile previews need this as well, we @@ -1003,7 +1003,7 @@ constrain_size_increments (MetaWindow *window, /* Determine whether constraint applies; exit if it doesn't */ if (META_WINDOW_MAXIMIZED (window) || window->fullscreen || - META_WINDOW_TILED (window) || info->action_type == ACTION_MOVE) + META_WINDOW_SIDE_TILED (window) || info->action_type == ACTION_MOVE) return TRUE; /* Determine whether constraint is already satisfied; exit if it is */ @@ -1134,7 +1134,7 @@ constrain_aspect_ratio (MetaWindow *window, constraints_are_inconsistent = minr > maxr; if (constraints_are_inconsistent || META_WINDOW_MAXIMIZED (window) || window->fullscreen || - META_WINDOW_TILED (window) || info->action_type == ACTION_MOVE) + META_WINDOW_SIDE_TILED (window) || info->action_type == ACTION_MOVE) return TRUE; /* Determine whether constraint is already satisfied; exit if it is. We |