Window borders and shadows missing from GTK3 dialogs (if autologin is enabled and Xorg is used)

Bug #2064177 reported by florin
104
This bug affects 23 people
Affects Status Importance Assigned to Milestone
GTK+
New
Unknown
gtk+3.0 (Ubuntu)
Triaged
Low
Unassigned
mutter (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a fresh Ubuntu 24.04 instalation and some of the windows have a few problems. Some are probably caused by theming, as the windows' borders (or their color) makes them impossible to discern from the background windows.

Just earlier I discovered another bug, related to detecting the click and window I clicked. I am trying to see the sub-content of a software update but the system reacts as I clicked the window below. In the recording you can see this happening both with the Terminal and with Firefox.

I have plenty of screenshots and also a screen recording that show the bugs.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome-shell 46.0-0ubuntu5
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 30 00:37:47 2024
DisplayManager: gdm3
InstallationDate: Installed on 2024-04-26 (3 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
RelatedPackageVersions: mutter-common 46.0-1ubuntu9
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
florin (florin-arjocu) wrote :
Revision history for this message
florin (florin-arjocu) wrote :

Here is a compilation of 4 screenshots I made. It shows the theming problem (I think).

summary: - No windows margins, problems with detecting windows on clicks
+ Window borders and shadows missing from GTK dialogs
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Window borders and shadows missing from GTK dialogs

Thanks for the bug report.

Firstly please open a separate bug about the clicking issue (although it sounds related to bug 2063831). We need each bug report to only describe one problem.

For the window borders issue please try:

1. Deleting all local extensions:

   cd ~/.local/share/gnome-shell/
   rm -rf extensions

   and then log in again.

2. If the problem still isn't solved then try resetting to system default settings:

   dconf reset -f /

   and then log in again.

3. If the problem still isn't solved then please run:

   journalctl -b0 > journal.txt
   dconf dump / > dconfchanges.txt

   and attach the resulting text files here.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
summary: - Window borders and shadows missing from GTK dialogs
+ Window borders and shadows missing from GTK3 dialogs
Changed in gtk+3.0 (Ubuntu):
status: New → Incomplete
Revision history for this message
Paulo Narciso (p-narciso1979) wrote (last edit ): Re: Window borders and shadows missing from GTK3 dialogs

I'm also affected by this bug. Log out and log in again fixes it, but after restarting the system it's broken again. Apps like transmission, vlc, libreoffice are affected. Nautilus, Rhythmbox or terminal have borders and shadow around it looking as it should.

Revision history for this message
Paulo Narciso (p-narciso1979) wrote :
Revision history for this message
Paulo Narciso (p-narciso1979) wrote :
Revision history for this message
Etsuya Akimoto (etsuya233) wrote :

I recently upgraded from Ubuntu 23.10 to Ubuntu 24.04 and encountered this issue. When this issue occurs, I found that I couldn't resize windows by dragging the border, and the area near the border became unresponsive, redirecting my focus to the window behind it upon clicking. Notably, this issue seemed isolated to gtk3 applications such as Intellij IDEA and VMware Player.

Revision history for this message
David (david431) wrote :

I have also encountered this issue. Also QT and Electron applications have no border/shadow.

Revision history for this message
David (david431) wrote :

I've noticed something, maybe this will help: all windows with SSD don't work properly, windows with CSD work as expected. Firefox main window with CSD works, sub-windows without don't.

Revision history for this message
Vitaly Akulin (n1gt) wrote (last edit ):

I have also encountered this issue when autologin enabled. Also Telegram (flatpak) and GIMP applications have no border/shadow, and I couldn't resize windows by dragging the border. Log out and log in again fixes it, but after restarting the system it's broken again.

Revision history for this message
florin (florin-arjocu) wrote :

If it helps, I also have autologin.

Revision history for this message
Paulo Narciso (p-narciso1979) wrote :

Me also.

Revision history for this message
David (david431) wrote :

I don't use autologin.

Revision history for this message
Spas Spasov (spaszspasov) wrote (last edit ):

Hi, just to report: I've upgraded from Ubuntu 23.10 to Ubuntu 24.04, the first solution, proposed above by Daniel van Vugt (vanvugt), resolves the issue for me.

Revision history for this message
Claudio (claudio-fischer) wrote :

same problem here. Did a fresh install of Ubuntu 24.04.
After using autologin a lot of programs have no border and shadow.
They also cant be resized any more.
If I log out and in again, this effects are gone.
After a restart with autologin the effects are here again.
If I disable autologin, everything works fine.

Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Changed in gtk+3.0 (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Changed in gtk+3.0 (Ubuntu):
status: New → Confirmed
Changed in gnome-shell (Ubuntu):
importance: Undecided → Medium
Changed in gtk+3.0 (Ubuntu):
importance: Undecided → Medium
summary: - Window borders and shadows missing from GTK3 dialogs
+ Window borders and shadows missing from GTK3 dialogs (if autologin is
+ enabled and Xorg is used)
Changed in gnome-shell (Ubuntu):
status: Confirmed → Triaged
Changed in gtk+3.0 (Ubuntu):
status: Confirmed → Triaged
no longer affects: gnome-shell (Ubuntu)
Changed in gtk+3.0 (Ubuntu):
importance: Medium → Low
Changed in gtk:
status: Unknown → New
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

@Daniel

I can reproduce these both in xorg & wayland, tested on intel and AMD graphics

its autologin that somehow trigger this, when autologin off or logout/log back in

i can resize windows again

Revision history for this message
bl (blagopoluchie) wrote :

Fresh installation of 24.04 on PC.
The bug in the Double commander (both QT6 version and GTK2 version), also in the Gnome commander (GTK+) file managers.

Logout removes all these 3 bugs (resizing, shadows, and https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2063831 Clicking on bottom half of applications switches to background), but only until reboot.
Disabling autologin seems to help.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mutter (Ubuntu):
status: New → Confirmed
Revision history for this message
Bernard Robbins (bernardrobbins) wrote (last edit ):

Logging off and on again fixed the issue with me. I have autologin on. Effects Thorium Browser but not Chrome. Also effects my Slack install, but no other apps so far.

I turned off auto-login. Logging in as soon as the user login prompt appears will cause the resizing issue. Waiting a bit after the login prompt appears to log in will not cause the window resize error.

Ubuntu 24.04 LTS upgraded from 23.10.
mutter-common/noble,now 46.0-1ubuntu9

Revision history for this message
Ljubomir Buturovic (ljubomir-9) wrote :

Affects Emacs (i.e., makes it unusable). Disabling autologin solves the issue for me.

Revision history for this message
Carlos Ramos (carlosrges) wrote :

Same problem here. Affects some apps like VS Code, LibreOffice... But not others like Firefox or Nautilus. Using Xorg and NVIDIA drivers. Never turned on autologin.

Revision history for this message
Daniel Buchmann (bukbr) wrote :

Same problem here too, affects ZapZap and Yuki

Revision history for this message
Enorize (enorize) wrote (last edit ):

I also encountered the same issue. The affected software from the official software sources includes GParted and Software & Updates (Software Updater). Third-party software includes Zotero, Electron-based software such as Typora, etc.

I also noticed another issue that might be related to this:

When there are other normal windows in the workspace, clicking on certain areas of the affected software causes it to minimize or invisible.

Steps to reproduce these issues:
1. Open Chrome and make it full screen
2. Open Software & Updates, there is no shadow on the window edges
2. And click near the edge(for example, click on the blank area to the left of the 'Close' button. ), and the Software & Updates window becomes invisible or under the chrome window.

autologin is enabled and Xorg is used

Revision history for this message
florin (florin-arjocu) wrote :

I wonder if the lack of borders does not cause the click problem. Probably the click is calculated within the border and while there are no borders, there is a problem so the click goes to the lower window/object. There is quite a while without a solution, it is quite annoying.

Revision history for this message
Eimis (eimantas-es) wrote (last edit ):

This issue affects me, too. Whenever I try to use a newer kernel installed via Mainline app this issue occurs, using the default kernel works fine. ---I have no autologin enabled.---

I have tested and can confirm that logging out and back in works and does solve the issue somehow.

Revision history for this message
goat (goats) wrote :

Any update on this? Its long time since first reports... I am affected with this one too, it make OS not usable at all. In my case bug exists on VS Code.

Revision history for this message
Luis Alvarado (luisalvarado) wrote :

While this is being investigated and a fix will be pushed, by disabling auto login (For the moment) fixes the issue.

Revision history for this message
Mikko Kortelainen (kortsi) wrote :

This affects me, too. Some apps have borders missing. I am unable to resize apps from the lower right corner. Using super+middle I can resize windows, but if a resize the window larger, the newly exposed area of the window seems to send clicks through to the window below.

At least these apps are affected:

spotify (snap)
chromium (snap)
slack (snap)
code (snap)
gimp (snap)
vim (deb)

For vscode it helps to use custom windows decorations.

For chromium it does not matter if native or custom window decorations are used.

I have also chrome installed (same version as chromium) using deb. It has no problems.

I'm on wayland. I have autologin enabled. Logging out and in again fixes the problem.

Revision history for this message
robert (robert-hans) wrote :

It seems like Regional Formats or language problem to me.
I installed new Ubuntu 24.04 in English (US) and the windows worked fine.
When I changed Regional Formats to Korean and reboot the system, the window problem started and remains.

I think the password/login process in Ubuntu has a problem with cjk language.
In Ubuntu 22.04, I installed 4 languages (English, Russian, Japanese, Korean), and whenever the login prompt appears, there were only English and Russian available.

In addition, I had to change the input language because the default language was set to Russian in the prompt no matter what the language order.

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

I think someone needs to test the backport suggestion made by upstream:

https://gitlab.gnome.org/GNOME/gtk/-/issues/6751#note_2127155

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.