---
 src/actions.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/actions.c b/src/actions.c
index e7d1c33..644412c 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -398,6 +398,21 @@ void wMaximizeWindow(WWindow *wwin, int directions)
                }
        }
 
+       /* check if icons are on the same side as dock, and adjust if not done 
already */
+       if (scr->dock && wPreferences.no_window_over_icons && 
!wPreferences.no_window_over_dock) {
+               int offset = wPreferences.icon_size + DOCK_EXTRA_SPACE;
+
+               if (wPreferences.icon_yard & IY_VERT) {
+                       if (scr->dock->on_right_side && (wPreferences.icon_yard 
& IY_RIGHT)) {
+                               usableArea.x2 -= offset;
+                       }
+                       /* can't use IY_LEFT in if, it's 0 ... */
+                       if (!scr->dock->on_right_side && 
!(wPreferences.icon_yard & IY_RIGHT)) {
+                               usableArea.x1 += offset;
+                       }
+               }
+       }
+
        /* Only save directions, not kbd or xinerama hints */
        directions &= (MAX_HORIZONTAL | MAX_VERTICAL | MAX_LEFTHALF | 
MAX_RIGHTHALF | MAX_TOPHALF | MAX_BOTTOMHALF | MAX_MAXIMUS);
 
-- 
1.8.4.3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to