[Pkg-wmaker-commits] [wmaker] 27/40: wmaker: Do not place icons under the dock

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Mar 11 13:08:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmaker.

commit c052addd1dced4ca1ebc2dbb31749c7faa26ed0d
Author: Cyrus Rahman <crahman at gmail.com>
Date:   Wed Mar 1 21:20:44 2017 -0700

    wmaker: Do not place icons under the dock
    
    While I love the new maximizing functions, in the process of
    developing them the code to keep icons from under the dock was lost.
    
    I have created a patch to prevent this problem.
---
 src/placement.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/placement.c b/src/placement.c
index 62fcb30..14fe226 100644
--- a/src/placement.c
+++ b/src/placement.c
@@ -117,6 +117,16 @@ void PlaceIcon(WScreen *scr, int *x_ret, int *y_ret, int head)
 	WMBagIterator iter;
 	WArea area = wGetUsableAreaForHead(scr, head, NULL, False);
 
+	/* Do not place icons under the dock. */
+	if (scr->dock) {
+		int offset = wPreferences.icon_size + DOCK_EXTRA_SPACE;
+
+		if (scr->dock->on_right_side)
+			area.x2 -= offset;
+		else
+		    area.x1 += offset;
+	}
+
 	/* Find out screen boundaries. */
 
 	/* Allows each head to have miniwindows */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmaker.git



More information about the Pkg-wmaker-commits mailing list