1
0
Fork 0

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:
Florian Müllner 2010-12-02 16:43:21 -05:00 committed by Ray Strode
parent 07c0471902
commit 161c1088f9

View file

@ -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 */