Dock displaying over window after resuming from blank screen

Bug #1961508 reported by ExploreWiki
546
This bug affects 93 people
Affects Status Importance Assigned to Milestone
Dash to dock
Unknown
Unknown
Mutter
New
Unknown
gnome-desktop (Fedora)
Confirmed
Low
gnome-shell (Ubuntu)
Confirmed
Undecided
Unassigned
gnome-shell-extension-ubuntu-dock (Ubuntu)
Won't Fix
Undecided
Unassigned
mutter (Ubuntu)
In Progress
Medium
Marco Trevisan (Treviño)

Bug Description

I have Blank Screen set to happen after 2 minutes of inactivity.

When resuming from a Blank Screen (by moving the mouse or touching the keyboard), the Dock is displayed over the top of the current program.

To get it back to normal I need to click "Restore Down" on the current programs window and then "Maximize" so that the Dock no longer overlaps it.

(Note: I have Auto-hide dock turned off.)

This only happens sometimes. I can't reproduce the bug it every time.

-------------------------------------------------

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
- Ubuntu 21.10

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
- Not sure (I guess the Dock is part of the Gnome interface?)

3) What you expected to happen
- Dock should not overlap the current program on resume from screen blank.

4) What happened instead
- The Dock overlaps the current program on resume from screen blank.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DisplayManager: gdm3
DistroRelease: Ubuntu 21.10
InstallationDate: Installed on 2022-02-18 (24 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
Package: gnome-shell-extension-ubuntu-dock
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 5.13.0-35.40-generic 5.13.19
RelatedPackageVersions: mutter-common 40.5-1ubuntu3~21.10.1
Tags: wayland-session impish
Uname: Linux 5.13.0-35-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
---
ProblemType: Bug
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
DisplayManager: gdm3
DistroRelease: Ubuntu 22.10
InstallationDate: Installed on 2022-02-18 (328 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
Package: mutter
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 5.19.0-28.29-generic 5.19.17
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions: mutter-common 43.0-1ubuntu4
Tags: wayland-session third-party-packages kinetic
Uname: Linux 5.19.0-28-generic x86_64
UpgradeStatus: Upgraded to kinetic on 2022-10-25 (79 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True

tags: added: 21.10
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1961508/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → gnome-shell-extension-ubuntu-dock (Ubuntu)
tags: added: impish
removed: 21.10
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

OK then we should close this unless it's seen without bug 1961540.

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: New → Invalid
Revision history for this message
ExploreWiki (explorewiki) wrote (last edit ):

No wait, it's happening with Libre Office Calc on resume from a blank screen. I will add an attachment.

Revision history for this message
ExploreWiki (explorewiki) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Reopened due to duplicate bugs. But I thought this was fixed somewhere recently?

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Invalid → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It was bug 1917939, fixed a year ago. I can't reproduce it in 22.04 at least...

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

  apport-collect 1961508

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: New → Incomplete
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
ExploreWiki (explorewiki) wrote : Dependencies.txt

apport information

tags: added: apport-collected wayland-session
description: updated
Revision history for this message
ExploreWiki (explorewiki) wrote : GsettingsChanges.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote : ProcEnviron.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote : ShellJournal.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote : monitors.xml.txt

apport information

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Dock displaying over program after resuming from blank screen

Thanks. It looks like there is no dock active in those attachments(?), and that you were using dash-to-dock in the past. Is it Ubuntu Dock you are now using?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also, does the problem still occur if you disable all those other non-Ubuntu extensions?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The version of gnome-shell you have does contain the fix for bug 1917939 still, but it sounds like it's not working in all cases.

Rather than worry about gnome-shell we should probably just wait for the new fix for bug 1917939 which will be in mutter 42 instead. That will be released to Ubuntu 22.04 soon.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I can reproduce the issue described here. I'm using stock Ubuntu dock, no other gnome-shell extensions other than the ones enabled by default in Ubuntu, and I'm on jammy fully up-to-date. After I lock my screen and let the monitor blank, when I unlock it I find that one or several of my fullscreen windows (e.g. firefox snap, gedit deb) is now maximized under the dock.

It looks like the fix for bug #1917939 isn't enough.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in gnome-shell (Ubuntu):
status: Incomplete → Confirmed
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Sebastian (sebastianhaselbeck) wrote :

thanks for noting the duplicate bug I opened. Very annoying little bug on a fresh 22.04 :)

summary: - Dock displaying over program after resuming from blank screen
+ Dock displaying over window after resuming from blank screen
tags: added: jammy
Revision history for this message
Sebastian (sebastianhaselbeck) wrote :

no news on this? I would've actually classified this as an LTS stopper... one of those non-critical but majorly annoying user-facing snafus.. :)

Changed in mutter (Ubuntu):
status: New → Confirmed
Changed in mutter:
status: Unknown → New
Revision history for this message
Sebastian (sebastianhaselbeck) wrote :

If I may add, it seems not all application windows are equally subject to this super annoying bug, at least subjectively some more so than others. For example, I "lose" Geary behind the dock almost all of the time, whereas Vivaldi is always respectful of where it is supposed to start and end :)

tags: removed: impish
Revision history for this message
Sebastian (sebastianhaselbeck) wrote :

no fix in sight? :(

Revision history for this message
Felipe Espic (felipeespic) wrote :

Hi, I'm experiencing the same bug in 22.04LTS. I have attached a pic for reference.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I wonder if this is related to the extensions being restarted (panels recreated) after unlocking. Mutter's window constraints code might handle conflicts between panels and windows when the windows change state, but not when a new panel suddenly appears.

Revision history for this message
Andrea Gadotti (aerdna-itto) wrote :

I'm experiencing the same bug on Ubuntu 22.04. I have found a semi-workaround: moving the dock to the other side of the screen and back fixes the positions of all the windows, and this can be done quickly with a custom keyboard shortcut that executes the following script:

#!/bin/bash
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position 'RIGHT'
sleep 1
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position 'LEFT'

(make sure you make the script executable and then just use the script's path in the "Command" field in Custom Shortcuts)

Of course this is still super annoying as it requires manual intervention every time you unlock the screen, but it's still much better than having to manually fix the position of *each* window.

Revision history for this message
Andrea Gadotti (aerdna-itto) wrote (last edit ):

Also, a few comments for debugging:

0. I agree that this is a pretty nasty bug for usability on an LTS release, it doesn't give a very professional feeling (which is too bad as otherwise Ubuntu 22.04 is amazing).

1. Not all windows end up underneath the dock, only some (and I can't identify a pattern).

2. I can't reliably reproduce the issue. On my setup it doesn't happen every time I unlock the screen, and it seems to happen less frequently in the first few unlocks after a full system restart. It gets worse after a few hours/days of system usage.

3. I'm using a laptop attached to an external HDMI display. The bug arises even if I boot the system directly with the external display and never use the laptop's display. I'm not sure whether I've experienced the issue when I use the laptop's display.

4. Every time I unlock the screen, it looks like there's always some flickering under the dock for the first few milliseconds. This seems to happen even when the bug does not arise, but it does look suspicious. Hypothesis: the position of the windows is reset every time after a screen unlock, and sometimes it happens that some windows are "left behind".

Filip Urh (filipurh)
information type: Public → Private
information type: Private → Public
Revision history for this message
Sebastian (sebastianhaselbeck) wrote :

Upgraded to 22.10 and this still persists... wow

Revision history for this message
ExploreWiki (explorewiki) wrote :

Sebastian, are you using an external monitor connected to HDMI when this problem occurs?

I've just seen Andrea's comment above in number 3 and noticed that I have the same setup. Laptop with an external HDMI display plugged in.

I can now replicate the problem consistently. When I plug in the external HDMI monitor, the dock on my laptop overlaps the window. When I unplug the HDMI monitor the dock on my laptop goes back to normal.

So I believe this problem is related to using a HDMI external monitor. The external monitor doesn't have a dock and so it goes full screen which is correct. However, it also puts the laptop monitor full screen sometimes, and therefore the dock overlaps the window.

Revision history for this message
Sebastian (sebastianhaselbeck) wrote :

nope, none of that. Vanilla install on a laptop.... some windows disappear a bit behind the dock, some dont

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

BTW anyone using a vertical monitor layout please see bug 1972151.

tags: added: kinetic
Revision history for this message
Felipe Espic (felipeespic) wrote :

I'm also just using a laptop (no HDMI connection used), and this issue persists to this date in Ubuntu 22.04.1 LTS.

Revision history for this message
William Paul Liggett (junktext-0) wrote :

Hi, I just wanted to say that I am also having this problem. I'm on Ubuntu 22.04 LTS with all of the available updates applied. In the attached screenshot, you'll see my terminal window as being underneath the Dock, which I didn't have it like that originally. It tends to happen after unlocking the screen.

I do not have the Dock set to use the Auto-hide mode and I've tried using the Dock in both panel and non-panel mode. This bug is super annoying as I need to click the "Restore Down" and then "Maximize" in the window controls in each affected application window to get them fixed temporarily.

--William

Revision history for this message
Taeyoung Hahn (taeyounghahn) wrote :

Using Ubuntu 22.04.1 LTS and I am seeing this problem everyday.

Revision history for this message
Ars Ivci (arsivci) wrote :

This bug affects 22.10 as well. In addition to restoring and re-maximizing the windows, one can also hide and re-unhide the dock and/or switching the panel mode off and back to on.

On 22.04 and 22.10, switching to xorg, corrects the problem in my case. However, on 22.04 only, this messes with the color profile, resulting in phosphorous colors. Removing the profile and using the system without one (not calibrated) remedies the situation (probably requires a log out/in or reboot).

Revision history for this message
Petr (moghila) wrote :

Ubuntu 22.04.1 LTS. I see this bug every day, all the time, and it's extremely annoying. Impossible to work properly.

Revision history for this message
Joël Esponde (jesp-leroy) wrote :

Same issue here. Ubuntu 22.04.1 LTS with Wayland. Everything was fine before the upgrade from Ubuntu 20.04.

Revision history for this message
P.Constantine (pconstantine) wrote :

Perfectly reproducible each time with the standard "terminal" window (maximized) on an Ubuntu 22.10 desktop computer.
I.e. only one HDMI monitor.

Revision history for this message
In , fabriciol.castillo (fabriciol.castillo-redhat-bugs) wrote :

Created attachment 1934127
12 screenshots

Description of problem:
Windows that are maximized or that take all vertical space are resized after lock (and logging back in) so that they "leave space" for top panel, even though panel is set to auto-hide (via Hide Top Bar extension). This only happens to focused windows. I had this happen to Firefox, Text Editor and Terminal. Tested VSCode, Chrome and Files but that doesn't happen in those cases.

How reproducible:
I cannot be certain if this affects other apps cause I couldn't carry out more extensive tests. However, as it affects those important apps (for me) it is a bit annoying (enough to report).

Steps to Reproduce:
1. Install and enable the Hide Top Bar gnome extension.
2. Open Firefox and maximize it. Alternatively it could be Terminal or Text Editor. Also, you can try when window is moved to the horizontal split position (left right) via shortcut (window takes all vertical space)
3. Lock session with Super+L
5. Unlock and restore session

Actual results:
Firefox (or Terminal or Text Editor)is resized and is not taking all vertical space anymore. Also, it looks as if the app "thinks" it is maximized because the shortcut for this doesn't work until you resize and reposition and try maximizing again. Only the focused window (before lock) is afected.

Expected results:
No window position or size is changed after lock.

Additional info:
- Attaching some screenshots to illustrate issue. I'm including 4 cases (two firefox, one terminal and one text editor. Each case has a before lock and after lock. I included an extra screen shot to show that the top bar extends to the space that resized windows leave.
- I don't remember having this problem before.
- I thought it may have to do with firefox but other gnome app are affected.

Revision history for this message
ExploreWiki (explorewiki) wrote :

This is still happening on Ubuntu 22.10.

I can run apport-collect 1961508 again when it happens again if that helps to get this fixed.

Revision history for this message
ExploreWiki (explorewiki) wrote : Dependencies.txt

apport information

tags: added: third-party-packages
description: updated
Revision history for this message
ExploreWiki (explorewiki) wrote : GsettingsChanges.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote : ProcEnviron.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote : ShellJournal.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote : monitors.xml.txt

apport information

Revision history for this message
ExploreWiki (explorewiki) wrote (last edit ):

It just happened again, in this case the Dock displayed over the top of the Evolution mail window so I ran the apport shown above.

tags: removed: third-party-packages
Changed in gnome-desktop (Fedora):
importance: Unknown → Low
status: Unknown → Confirmed
Revision history for this message
Mike (delgonna) wrote :

I have same bug with clean install of Ubuntu 22.04.01 LTS. I did reinstall as I assumed a couple of bugs were caused by kernel updates and other non-standard settings, seems not.

HP Laptop - 15s-fq1xxx
Intel® Core™ i5-1035G4 CPU
Mesa Intel® Iris(R) Plus Graphics (ICL GT1.5)

Revision history for this message
rrwood (roy-wood) wrote :

I have the same bug with Ubuntu 22.10 running on a Dell 3500 laptop with an external HDMI monitor as primary monitor. Like the others above, the problem is semi-random, so likely related to some race condition. The external monitor is very slow to wake after sleep, compared to the laptop monitor.

Revision history for this message
Steffen Neumann (sneumann) wrote :

Hi, affected here. Laptop + external monitor via docking station and DVI.
Ubuntu 22.04.1, wayland.
Affected apps: Firefox, gnome-terminal, evolution,
Non-affected apps: rocket-chat-client (snap), Slack, MS-Teams (electron), nautilus
Yours, Steffen

Revision history for this message
Alex H (alexpengui) wrote :

Hi, affected.

Notebook. Ubuntu 22.04.2 LTS, Wayland. Gnome Version 42.5
Affected apps: Firefox, gnome-terminal.

Hardware:
HP EliteBook 850 G8 Notebook PC
11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz × 8
Mesa Intel® Xe Graphics (TGL GT2)

It happened once with this flow but I couldn't reproduce it immediately after:

1. Locking the screen by closing my notebook.
2. Opening my notebook and unlocking the login screen
3. Switching from a window like Firefox with Alt+Tab to the terminal
4. At that point, the dock overlapped the terminal and when alt-tabbing again, it also overlapped Firefox.

tags: added: rls-ll-incoming
tags: added: lunar
Revision history for this message
Islam (islam) wrote :

It can also happen while connecting an external monitor to the laptop.

Revision history for this message
Jean (alessandro-lai85) wrote :

Affected here, 22.04.1 with Wayland, didn't happen with X11.

 I thought that this bug was this one: https://gitlab.gnome.org/GNOME/mutter/-/issues/1627

How can we fix this? Is there any possible workaround?

Revision history for this message
Mikhail Glagolev (mike-glagolev) wrote :

Was affected on 22.04, still affected after upgrade to 23.04.

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Confirmed → Won't Fix
Changed in mutter (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in mutter (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
importance: Undecided → Medium
status: Triaged → In Progress
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

So, that "fix" won't probably be accepted.

We've worked on a solution that works for some cases, but still missing few edge ones.

Revision history for this message
Saptarshi Roy (sroypc) wrote :

Please share an update on the progress. Thanks!

Revision history for this message
Sebastian (sebastianhaselbeck) wrote :

Just updated to 23.04 a few minutes ago, so I am super up to date on my system with all updates applied, and this problem still persists (e.g. with Thunderbird) and remains a super annoying bug

Revision history for this message
Huseyn Najaf (hnajafli) wrote :

This error happens to me too. To fix the error, I drag the window escaping behind the dock on the left to the right.
OS: Ubuntu 22.04.2 LTS.

Revision history for this message
Matt Wette (matt-rw) wrote :

Adding screenshot from 23.04

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Sadly this is a mutter bug that is not as easy to handle because it may break other cases.

However we're doing some work on it at https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3014

Revision history for this message
Rolf Kutz (vzsze) wrote :

I still see this bug in 22.04. It's quite annoying.

Revision history for this message
ExploreWiki (explorewiki) wrote :

It's still happening on 23.10 for me....

Revision history for this message
Sruli (sruli) wrote :

20 months later and no fix! I have this issue on my laptop (ubuntu 22.04) and it drives me crazy, I don't use many GUI apps but the ones I use all suffer from this (firefox, thunderbird, gedit, gnome-termminal & files).

Revision history for this message
popov895 (popov895) wrote :

My "workaround" for this is to switch to an empty workspace before locking the screen :)

tags: added: mantic
Revision history for this message
Yannick Barbeaux (ybarbeaux+ubuntu) wrote :

same problem for me on Ubuntu 22.04.3 with latest updates (GNOME 42), the Terminal window appears under the dock after sleep or screen lock. This is very annoying.

Revision history for this message
William Paul Liggett (junktext-0) wrote :

FYI: My temporary workaround is to just have the Dock to auto-hide (for Ubuntu 22.04). This way there are no windows that might get stuck underneath the Dock. This essentially solves the issue in a simple way, but the only downside is that some folks prefer to see their Dock all the time.

Revision history for this message
Marek Hajduczenia (mxhajduczenia) wrote :

The auto-hide "workaround" does not work well in case of machines that are being accessed remotely - then it is next to impossible to trigger the dock to show up.
Why is such a simple and reproducible bug still around after such a long time>

Revision history for this message
Edward (edwardvankuik) wrote :

The problem persists. Ubuntu 23.10 / Gnome 45. I'm so used to just re-maximizing every window now.

Revision history for this message
ExploreWiki (explorewiki) wrote :

I reported this issue back on the 2022-02-20. I can't believe it is still happening. I have also gotten used to re-maxing the windows!

If there is anything we can do to fix this bug, please just let us know!

Currently this bug affects 82 other people, and that's only the people who have a launchpad account...

Revision history for this message
popov895 (popov895) wrote :
Revision history for this message
Edward (edwardvankuik) wrote :

@popov895 Your extension seems to work. I bought you a "coffee". :)

Revision history for this message
Ali Devrim OĞUZ (devrim-oguz) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
tetsuo29 (russell-martin) wrote :

This bug is affecting me and I really wish I could do something to get it fixed. On the one hand, it is a relatively minor bug but, on the the other, it has gone unfixed for so long now and it's very annoying to have to unmaximize and then remaximize windows after waking my laptop from sleep or lock.

Revision history for this message
Rolf Kutz (vzsze) wrote :

The Workaround from #71 does not seem to work for me.

Revision history for this message
popov895 (popov895) wrote :

> The Workaround from #71 does not seem to work for me.

Try increasing the delay in the extension settings (available through the Extensions app).

Revision history for this message
Balló György (ballogy) wrote :

I submitted a patch to mutter that should fix this problem:
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3601

Revision history for this message
Simon Déziel (sdeziel) wrote :

The workaround from #71 worked almost perfectly out of the box, I've only seen 1-2 windows staying under the dock. I probably simply need bump the delay a bit from the default value.

Thanks a lot @popov895. @ballogy, thanks for working on this with upstream!

Revision history for this message
Rolf Kutz (vzsze) wrote :

Increasing the delay for the #71 workaround works for me. Thank you.

tags: removed: kinetic lunar rls-ll-incoming
Revision history for this message
popov895 (popov895) wrote :

Does this issue exists on Ubuntu 24.04?

Revision history for this message
Shashank (scramjet911) wrote :

Bug exists for ubuntu 22.04.4

Revision history for this message
popov895 (popov895) wrote :

Just checked and it seems that there is no such issue on Ubuntu 24.04 Beta. I hope the release version will be the same.

Revision history for this message
Shlomo Bachar (shlomo-bachar) wrote :

Have the same issue. Checked with Inkscape, Brave, Firefox and Ubuntu Settings windows.
Using 22.04.4 LTS. (It seems to me that this bug is not application specific, but I cannot confirm).

To post a comment you must log in.