mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-25 16:02:33 +01:00
wmaker: fix maximizing window in multiple screens env
This patch is fixing the maximize window feature. As it was reported by Miikka Veijonen, in multiple screens env wmaker is reserving some space for the dock even on screen that are not displaying it. This patch is only adjusting the working area for the head that is displaying the dock. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
870a73ff32
commit
1485233292
@@ -306,7 +306,7 @@ WArea wGetUsableAreaForHead(WScreen * scr, int head, WArea * totalAreaPtr, Bool
|
||||
|
||||
if (noicons) {
|
||||
/* check if user wants dock covered */
|
||||
if (scr->dock && wPreferences.no_window_over_dock) {
|
||||
if (scr->dock && wPreferences.no_window_over_dock && wAppIconTouchesHead(scr->dock->icon_array[0], head)) {
|
||||
int offset = wPreferences.icon_size + DOCK_EXTRA_SPACE;
|
||||
|
||||
if (scr->dock->on_right_side)
|
||||
|
||||
Reference in New Issue
Block a user