move dock/icons size adjustments, to fix window placement
commit0faff93cf770927b6f5c3811688cd5e42d498970
authorAmadeusz Sławiński <amade@asmblr.net>
Sun, 24 Nov 2013 12:47:08 +0000 (24 13:47 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:07 +0000 (30 18:11 +0000)
tree0448eb8a319fd0d4b5947e336048ba7ca3a6c679
parent895a6e97e1d0cbafd9fd6a5b1aba674275d4eed4
move dock/icons size adjustments, to fix window placement

Functions placing windows (PlaceWindow - src/placement.c, wMaximizeWindow -
src/actions.c) need to calculate area differently than ones placing icons
(PlaceIcon - src/placement.c, wArrangeIcons - src/actions.c).
So this patch puts adjustment code in wGetUsableAreaForHead which is
used by all those functions but called with different 'bool noicons'
argument depending on if it's called in window or icon placement
function.

Reported-by: Carlos R. Mafra <crmafra@gmail.com>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
src/actions.c
src/xinerama.c