7

Starting two days ago (9/22/21) on both of my Kubuntu machines Chrome no longer displays system title bars and borders. The option in settings is enabled. Disable/re-enable/reboot hasn't fixed it. All other applications display this correctly.

chrome

My machines are both Kubuntu. lsb_release -a says Ubuntu 20.04.3 LTS. Chrome is 94.0.4606.61.

I've received no responses on the KDE-users list. On the Gentoo list the one person who responded said he also didn't have the system title bar but when he reenabled the feature and for him it works.

Using the system title bar allows Chrome to be pinned to all virtual desktops which I need for media. In the immediate term I'm using Firefox for that purpose but would prefer to use Chrome.

Thanks in advance.

Chrome with Appearance & Fix setting

6
  • Can you post a screenshot? Also check if the same issue is present in Chromium. Sep 24, 2021 at 19:41
  • Happy to but don't know how. Will research or tell me how to embed a png file.
    – LGTrader
    Sep 24, 2021 at 22:16
  • The following points to a screenshot. drive.google.com/file/d/1-GU-VzJyFiB0wmzjTeOD9Yf37rJQCzQU/…
    – LGTrader
    Sep 24, 2021 at 22:24
  • You can edit to upload images (I did that for you). This is most likely due to the new CSD in chrome, which does not integrate very well with KDE (See omgubuntu.co.uk/2021/08/…). I will try to log in to my KDE desktop and try to find a fix. Sep 25, 2021 at 4:12
  • Same problem in GNOME too. Possibly a new bug in Chrome.
    – FedKad
    Sep 25, 2021 at 10:45

5 Answers 5

8

Solution

Right click on the Chrome title bar, and check Use system title bars and borders (I tested this on Chromium in XFCE, but it should work on Chrome in KDE too).

solution Before enabling title bar

Now the title bar is there, and you can make it visible in every workspace.

after After enabling title bar


Background

Chrome is a GTK app. Like most other GTK apps it switched to CSD (client side decoration) in the recently released version 94. Now it draws its own title bar, instead of using the title bar provided by KDE Plasma.

11
  • I am using GNOME and the same problem mentioned in the Question is present here too, after the recent upgrade of Chrome. You cannot right click on the title bar and select "Always on Visible Workspace". Your answer does not make any difference in this respect.
    – FedKad
    Sep 25, 2021 at 10:33
  • We need something like the one shown on this screenshot imgur.com/a/0l9FAuE (taken using Firefox).
    – FedKad
    Sep 25, 2021 at 14:16
  • Prior to asking the questions I was already set to use GTK+ and the original post said the use system title bars didn't work. So far help for me either. PLEASE NOTE: A 'theme' is NOT a title bar. The CLient Side Decoration comment seems appropriate as to the possible cause of the problem though
    – LGTrader
    Sep 25, 2021 at 14:27
  • It didn't work for me on Kubuntu but one Gentoo use said he found turning on the ozone experimental option under chrome://flags worked for him. Anyone reading might try that out.
    – LGTrader
    Sep 25, 2021 at 14:28
  • 1
    This worked for ms-edge on Archlinux + KDE. Thanks
    – smac89
    Sep 18, 2022 at 10:37
6

Per Google this is a new issue from 94

From Reddit, here is a (temporary) quick fix:

  • Ensure that "Use system title bar and borders" is set
  • Go to chrome://flags
  • Find the "use-ozone-platform" setting and change it from "default" to "disabled"
  • Relaunch Chrome
2
  • The same problem persists in the newly released 94.0.4606.71 version of Chrome. The workaround given in this answer works though.
    – FedKad
    Oct 1, 2021 at 6:54
  • 2
    This problem was solved in version 95.
    – FedKad
    Oct 20, 2021 at 8:53
1

Google Chrome beta works OK so hopfully when it migrates to stable this fault will be gone.

1
  • Thanks. Good to know.
    – LGTrader
    Sep 27, 2021 at 14:08
0

My answer is specifically for KDE but I suspect other desktop environments has similar capabilities.

SystemSettings->Shortcuts->KWin->Keep Window on All Desktop

and program it to something. I chose Meta+a (Windows key and a for 'all')

It appears to work for all app and it's a toggle.

0

The setting can be easily changed by right-click on the title bar. If not, here is another way:

The setting is controlled by a boolean custom_chrome_frame in ~/.config/google-chrome/Default/Preferences.

If it is false, then the system title bar will be used; if is true, it is customed by the browser. I suggest that before changing the boolean, the browser should be closed, otherwise the file may be modified by the browser.

It works for chrome (~/.config/google-chrome), chromium (~/.config/chromium), and MS edge (~/.config/microsoft-edge). And it seems to be the only way to bring the custom title bar back.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .