Support "KeepDockOnPrimaryHead" when initially creating dock
commitd4f5f3ec7f37d65b1dc0225b52e9b5983264b777
authorTorrance, Douglas <dtorrance@piedmont.edu>
Wed, 18 Jan 2023 11:42:57 +0000 (18 11:42 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 18 Jan 2023 12:18:03 +0000 (18 12:18 +0000)
tree431e4d834faeebbc12c3199ba5e69d6fdfcf0695
parent83f7fa43cebeb0933d9a11b3b986c3f44ef89b4d
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