mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
6e4698fe11
commit
c052addd1d
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user