dash-to-dock icon indicating copy to clipboard operation
dash-to-dock copied to clipboard

Randomly on a wrong monitor when waking from sleep.

Open HubKing opened this issue 2 years ago • 6 comments

It happens randomly but sometimes when waking up from sleep, DtD is displayed on a wrong monitor. I have to open the settings and change "Show the dock on".

I don't know why this happens exactly, but my guess is that sometimes the primary monitor gets initialised a little bit later when waking up from sleep, and at that very moment DtD enumerates the monitor and wrongly thinks that there is only the secondary monitor and displays itself on that monitor.

Can't there be a workaround for this, adding a checkbox like "Always show on the primary monitor", and when the primary monitor changes, DtD automatically moves itself to the primary monitor?

HubKing avatar Mar 04 '23 22:03 HubKing

I'm having the same issue. Looking at the DConf settings, the old means to control this has been deprecated and no longer used nor behaves as it use to. The new means is suppose to support a primary value, but it won't stick and just gets transformed to the connection of the primary monitor. This means that when your displays change again, it will move again.

Seems there is something causing it to react to the preferred-monitor-by-connector and transforms it rather than leaving it on the default value. So you can't even reset the monitor settings to default.

6XGate avatar Mar 05 '23 03:03 6XGate

I have been changing monitor settings/disabling extensions to figure out the cause of some problem, and it seems now that DtD ALWAYS move to the secondary monitor when waking up from sleep. That is, the bug is always reproducible.

If you want to investigate the cause of this unwanted move, maybe this is a good chance. I don't know where DtD is outputting logs, so I checked journalctl /usr/bin/gnome-shell, but I am not sure sure which lines are from DtD. If you tell me what I should do to find out the cause, please let me know, and I will do those things and report the result.

The part of gnome-shell log that I think may be relevant:

meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed meta_display_get_monitor_in_fullscreen: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed

HubKing avatar Mar 05 '23 05:03 HubKing

Same issue here : always moved to secondary monitor after resume. Debian bookworm, Gnome Shell 43.3, D2D v79, did not occur before.

pled avatar Mar 14 '23 09:03 pled

I also want to add this issue affects both Xorg and Wayland.

6XGate avatar May 12 '23 19:05 6XGate