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:
committed by
Carlos R. Mafra
parent
83f7fa43ce
commit
d4f5f3ec7f
@@ -859,7 +859,7 @@ static WAppIcon *mainIconCreate(WScreen *scr, int type, const char *name)
|
|||||||
btn = wAppIconCreateForDock(scr, NULL, "Logo", "WMDock", TILE_NORMAL);
|
btn = wAppIconCreateForDock(scr, NULL, "Logo", "WMDock", TILE_NORMAL);
|
||||||
if (wPreferences.flags.clip_merged_in_dock)
|
if (wPreferences.flags.clip_merged_in_dock)
|
||||||
btn->icon->core->descriptor.handle_expose = clipIconExpose;
|
btn->icon->core->descriptor.handle_expose = clipIconExpose;
|
||||||
x_pos = scr->scr_width - ICON_SIZE - DOCK_EXTRA_SPACE;
|
x_pos = getDockXPosition(scr, True);
|
||||||
break;
|
break;
|
||||||
case WM_DRAWER:
|
case WM_DRAWER:
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user