mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
tiling: Fix dragging windows free from edge-tiling
Commit 96c43866
changed the tiling behavior to prefer edge tiling
over maximization in corner cases (well, quite literally). As a
side effect, it only allows untiling of edge-tiled windows by
dragging the window towards the correct edge.
This patch restores the old behavior for untiling, while keeping
the new behavior for untiled windows.
https://bugzilla.gnome.org/show_bug.cgi?id=645455
This commit is contained in:
parent
c9e9412540
commit
26e41bc24a
@ -8133,8 +8133,6 @@ update_move (MetaWindow *window,
|
|||||||
else
|
else
|
||||||
window->tile_mode = META_TILE_NONE;
|
window->tile_mode = META_TILE_NONE;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
window->tile_mode = META_TILE_NONE;
|
|
||||||
|
|
||||||
/* For maximized tiling we are interested in the outside top edge
|
/* For maximized tiling we are interested in the outside top edge
|
||||||
* of the work area of the monitor where the pointer is located.
|
* of the work area of the monitor where the pointer is located.
|
||||||
@ -8142,6 +8140,11 @@ update_move (MetaWindow *window,
|
|||||||
* We use the outside edge instead of the inside edge, because we
|
* We use the outside edge instead of the inside edge, because we
|
||||||
* don't want to force users to maximize windows they are placing
|
* don't want to force users to maximize windows they are placing
|
||||||
* near the top of their screens.
|
* near the top of their screens.
|
||||||
|
*
|
||||||
|
* If window->tile_mode is not NONE, that means that either we are
|
||||||
|
* on an edge and set it above, or we are currently tiled (in
|
||||||
|
* which case meta_window_can_tile_side_by_side() and
|
||||||
|
* meta_window_can_tile_maximized() return FALSE).
|
||||||
*/
|
*/
|
||||||
if (window->tile_mode == META_TILE_NONE && meta_window_can_tile_maximized (window))
|
if (window->tile_mode == META_TILE_NONE && meta_window_can_tile_maximized (window))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user