From d4f5f3ec7f37d65b1dc0225b52e9b5983264b777 Mon Sep 17 00:00:00 2001 From: "Torrance, Douglas" Date: Wed, 18 Jan 2023 11:42:57 +0000 Subject: [PATCH] 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. --- src/dock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dock.c b/src/dock.c index 81bd5a97..d06cac05 100644 --- a/src/dock.c +++ b/src/dock.c @@ -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)