[Xfce4-commits] <xfwm4:master> Reduce tiling distance (bug #8628) Add tile_on_move setting (no UI yet)

Olivier Fourdan noreply at xfce.org
Sat Apr 7 17:10:01 CEST 2012


Updating branch refs/heads/master
         to e296502edd7c3678100cab1928f71a802d151c4b (commit)
       from ba6a10a17598174e0da2e886481ab799e5c4b755 (commit)

commit e296502edd7c3678100cab1928f71a802d151c4b
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue Apr 3 22:12:31 2012 +0200

    Reduce tiling distance (bug #8628)
    Add tile_on_move setting (no UI yet)

 defaults/defaults |    2 +-
 src/moveresize.c  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/defaults/defaults b/defaults/defaults
index 56eaf40..6db210a 100644
--- a/defaults/defaults
+++ b/defaults/defaults
@@ -50,7 +50,7 @@ snap_to_border=true
 snap_to_windows=false
 snap_width=10
 theme=Default
-tile_on_move=false
+tile_on_move=true
 title_alignment=center
 title_font=Sans Bold 9
 title_horizontal_offset=0
diff --git a/src/moveresize.c b/src/moveresize.c
index b83a98f..33cdb54 100644
--- a/src/moveresize.c
+++ b/src/moveresize.c
@@ -55,7 +55,7 @@
     ButtonReleaseMask | \
     LeaveWindowMask
 
-#define TILE_DISTANCE 15
+#define TILE_DISTANCE 2
 
 typedef struct _MoveResizeData MoveResizeData;
 struct _MoveResizeData
@@ -764,7 +764,7 @@ clientMoveTile (Client *c, XMotionEvent *xevent)
      * we should really not have such an option, I must have been weaked
      * in the past...)
      */
-    if (!screen_info->params->restore_on_move)
+    if (!(screen_info->params->tile_on_move & screen_info->params->restore_on_move))
     {
         return FALSE;
     }


More information about the Xfce4-commits mailing list