diff options
| author | Miguel A. Colón Vélez <[email protected]> | 2015-01-01 22:44:29 -0500 | 
|---|---|---|
| committer | Miguel A. Colón Vélez <[email protected]> | 2015-01-01 22:44:29 -0500 | 
| commit | 060838853303871a9fbb1ddfe0228668318070e7 (patch) | |
| tree | a96c7bcf4d182cf42c076584e20a9114760f571a /src/core/window.c | |
| parent | 07f6f968dbe96ff7c8eb4347f2bbb4457f73c30a (diff) | |
| download | marco-060838853303871a9fbb1ddfe0228668318070e7.tar.bz2 marco-060838853303871a9fbb1ddfe0228668318070e7.tar.xz  | |
BugFix: Can't retile to a different corner with keybindings.
has_maximize_func implies
 window->has_resize_func
 !window->fullscreen
window->has_resize_func implies
 (window->size_hints.min_width < window->size_hints.max_width) ||
 (window->size_hints.min_height < window->size_hints.max_height)
A tiled window implies that it could be tiled.
A maximized window implies that it could be tiled.
.
Therefore simplify the if and add window->shaded to make it equivalent to the
macro but allowing to tile already maximized/tiled windows.
.
If this commit causes a regression it probably means that a call to
meta_window_recalc_features is missing.
.
This bug already existed but can only be triggered by the new keybindings.
Diffstat (limited to 'src/core/window.c')
| -rw-r--r-- | src/core/window.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c index e820a26c..6f5a5fe0 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2746,7 +2746,7 @@ meta_window_can_tile (MetaWindow *window)    MetaRectangle tile_area;    /*if (!META_WINDOW_ALLOWS_RESIZE (window))*/ -  if (!META_WINDOW_ALLOWS_RESIZE (window)) +  if (!meta_window_can_tile_maximized (window) || window->shaded)      return FALSE;    monitor = meta_screen_get_current_xinerama (window->screen);  | 
