1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

Support "KeepDockOnPrimaryHead" when initially creating dock

We use the new "getDockXPosition" helper function to find the x
position of the main icon, whose position is used in "wDockCreate" to
get the position of the entire dock.

Previously, "KeepDockOnPrimaryHead" was only taken into account
when *moving* the dock and not when creating it.
This commit is contained in:
Torrance, Douglas
2023-01-18 11:42:57 +00:00
committed by Carlos R. Mafra
parent 83f7fa43ce
commit d4f5f3ec7f

View File

@@ -859,7 +859,7 @@ static WAppIcon *mainIconCreate(WScreen *scr, int type, const char *name)
btn = wAppIconCreateForDock(scr, NULL, "Logo", "WMDock", TILE_NORMAL);
if (wPreferences.flags.clip_merged_in_dock)
btn->icon->core->descriptor.handle_expose = clipIconExpose;
x_pos = scr->scr_width - ICON_SIZE - DOCK_EXTRA_SPACE;
x_pos = getDockXPosition(scr, True);
break;
case WM_DRAWER:
if (name == NULL)