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.
This commit is contained in:
Torrance, Douglas authored and Carlos R. Mafra committed 2023-01-20 10:34:36 +00:00
1 parent f6165d6e80
commit 9cc16182d3
1 file changed
+1 -1
+1 -1
View File
@@ -4610,7 +4610,7 @@ static void swapDrawer(WDock *drawer, int new_x)
{
int i;
drawer->on_right_side = !drawer->on_right_side;
drawer->on_right_side = drawer->screen_ptr->dock->on_right_side;
drawer->x_pos = new_x;
for (i = 0; i < drawer->max_icons; i++) {