tiling: disable "shake loose" feature when edge tiling
The old behavior of being able to shake loose a maximized window overlaps with and is for the most part superceded by top edge tiling. This commit changes the code to only enable shake loose behavior when edge tiling is disabled. https://bugzilla.gnome.org/show_bug.cgi?id=630548
This commit is contained in:
parent
07c0471902
commit
161c1088f9
1 changed files with 5 additions and 2 deletions
|
@ -7877,8 +7877,11 @@ update_move (MetaWindow *window,
|
|||
{
|
||||
double prop;
|
||||
|
||||
/* Shake loose */
|
||||
window->shaken_loose = !META_WINDOW_TILED_SIDE_BY_SIDE (window);
|
||||
/* Shake loose, so that the window snaps back to maximized
|
||||
* when dragged near the top; do not snap back if tiling
|
||||
* is enabled, as top edge tiling can be used in that case
|
||||
*/
|
||||
window->shaken_loose = !meta_prefs_get_edge_tiling ();
|
||||
window->tile_mode = META_TILE_NONE;
|
||||
|
||||
/* move the unmaximized window to the cursor */
|
||||
|
|
Loading…
Reference in a new issue