Use dock to determine whether drawer is on right side when swapping
commit9cc16182d31850c0b4180b29dc915c6dfc5ff7e8
authorTorrance, Douglas <dtorrance@piedmont.edu>
Fri, 20 Jan 2023 02:45:56 +0000 (20 02:45 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 20 Jan 2023 10:34:36 +0000 (20 10:34 +0000)
tree713db996c7e13219ec4ce0330e67c1455c33277c
parentf6165d6e80c1017e2cf20ace7303d627b8da647a
Use dock to determine whether drawer is on right side when swapping

Previously, we assumed that it always switched from left to right or
vice versa when calling swapDrawer.  However, now we may also call
swapDrawer when changing the value of "KeepDockOnPrimaryHead", which
wouldn't actually switch which side of the screen it's on.

So instead, we determine which side of the screen it should be on
based on the dock.
src/dock.c