helloSystem / Dock

Application dock
GNU General Public License v3.0
18 stars 13 forks source link

Appears on non-primary screen #25

Open probonopd opened 2 years ago

probonopd commented 2 years ago

The Dock can appear on another scren than the primary screen (the one that has the Menu).

https://github.com/cutefishos/dock/blob/main/src/mainwindow.cpp does quite some trickery with timers and whatnot to react to changes in screen geometry.

probonopd commented 2 years ago

However, this is not always the case.

This is working correctly:

image

(Note that DVI-D-1 is the screen that shows BIOS messages.)

probonopd commented 2 years ago

But with this, the Dock is not shown at all:

image

probonopd commented 2 years ago

And with this, the Dock is shown on the wrong screen (DVI-D-0) at the bottom of the screen, but not correctly centered for DVI-D-0 (looks like it is attempting it to center it to the width of DVI-I-1).

image

probonopd commented 2 years ago

So the whole thing is messed up. We need to backport the proper logic from https://github.com/cutefishos/dock.