Score:4

How to enable system title bar in Chrome to make it visible on every workspace?

az flag

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

us flag
Can you post a screenshot? Also check if the same issue is present in Chromium.
az flag
Happy to but don't know how. Will research or tell me how to embed a png file.
az flag
The following points to a screenshot. https://drive.google.com/file/d/1-GU-VzJyFiB0wmzjTeOD9Yf37rJQCzQU/view?usp=sharing
us flag
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 https://www.omgubuntu.co.uk/2021/08/chrome-finally-fixes-csd-issues-on-linux). I will try to log in to my KDE desktop and try to find a fix.
FedKad avatar
cn flag
Same problem in GNOME too. Possibly a new bug in Chrome.
FedKad avatar
cn flag
This problem seem to have been solved in Version 95.0.4638.54 (Official Build) (64-bit) of Chrome.
Score:6
cn flag

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
FedKad avatar
cn flag
The same problem persists in the newly released 94.0.4606.71 version of Chrome. The workaround given in this answer works though.
FedKad avatar
cn flag
This problem was solved in version 95.
Score:2
us flag

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.

FedKad avatar
cn flag
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 avatar
cn flag
We need something like the one shown on this screenshot https://imgur.com/a/0l9FAuE (taken using Firefox).
az flag
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
az flag
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.
az flag
By updated answer to you mean what looks like the secondary pulldown with the Always on Visible Workspace option? I always had the Use system title bar turned on. In your second screen shot you have the system title bar but I do not see that here on Chrome.
az flag
I did find one barely acceptable solution for KDE. In the Window Management section of System Settings there is a Window Rules entry for google-chrome. In the Appearances & fixes section if I set "No titlebar and frame" to 'Do Not Effect" then I do get a title bar but Chrome is sort of suspended inside a window with transparent space around it. Will try and post a screenshot.
az flag
I'm sorry. I guess I'm just stupid. I THINK what you are saying in your post with the two screenshots is that in the first you do not have a system title bar, you right click the tab session and turn on the option. In the second screenshot you are showing that you have the system title bar and that the title bar has a menu. What I am saying is that I already have the option you chose turned on but I do NOT get the system title bar that you show in the second screenshot.
us flag
@LGTrader It works for me in Chromium, after turning on that option. Consider switching to Chromium, the experience is very similar.
cn flag
This answer does not work with Chrome version 94.0.4606.61 on Xubuntu. I see the "Use system title bar and borders" setting when right-clicking on the top bar, and can turn the setting on (a checkmark is displayed to the left of the setting title), but this does not add the system title bar nor borders, even after restarting the browser.
us flag
@TeemuLeisti It works for me in Chromium 94.0.4606.54. Maybe it would work in the next version of Chrome, as suggested in the other answer.
smac89 avatar
in flag
This worked for ms-edge on Archlinux + KDE. Thanks
Score:1
sa flag

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

az flag
Thanks. Good to know.
Score:0
in flag

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 (google-chrome), chromium (chromium), and MS edge (microsoft-edge-stable). And it seems to be the only way to bring the custom title bar back.

Score:0
az flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.