New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 27 users
Status: Duplicate
Merged: issue 594490
Owner: ----
Closed: Oct 2015
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment
Minimize/maximize/close buttons are missing when Chomre is maximized
Reported by resoridi...@gmail.com, May 21 2014 Back to list
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36

Steps to reproduce the problem:
1. Open Chrome and make sure "Use system title bar and borders" is UNCHECKED in Settings
2. Maximize the browser if it is not maximized (note that this IS NOT the case when the browser is in full-screen mode)

What is the expected behavior?
Having minimize/maximize/close buttons when browser is maximized

What went wrong?
The minimize/maximize/close buttons are missing

Did this work before? Yes Chrome 34

Chrome version: 35.0.1916.114  Channel: stable
OS Version: Mint 15 KDE
Flash Version: Shockwave Flash 13.0 r0

Note that the buttons are not missing when the browser is not maximized. Also not that the issue is not related to the theme I'm currently using.
 
chrome_buttons_missing.jpg
10.4 KB View Download
Comment 1 by curill...@gmail.com, May 21 2014
I can confirm. (Linux, Kubuntu standard build).
Cc: tkonch...@chromium.org
Labels: Needs-Feedback
Unable to repro the issue on Linux 12.04 chrome version 35.0.1916.114

Could you please provide your chrome://gpu info

Attached is the GPU info
GPU Info1
6.3 KB View Download
Comment 3 Deleted
Comment 4 by curill...@gmail.com, May 22 2014
Here is my gpu info file (attachment).

I am using Kubuntu 14.10(x86_64).
gpu.txt
7.2 KB View Download
I'm also attaching my GPU Info file. If it matters - my distro (Mint 15 KDE) is based on Ubuntu 13.04.

P.S.: Could anybody change the title because I misspelled "Chrome"? Thanks!
gpu.html
4.1 KB View Download
Comment 6 by curill...@gmail.com, May 22 2014
I tried reproducing the problem in virtualbox, with no success.
However I tried running chrome from console to see logs and noticed:

[7327:7327:0522/174114:ERROR:desktop_window_tree_host_x11.cc(1289)] Not implemented reached in void views::DesktopWindowTreeHostX11::MapWindow(ui::WindowShowState)

appeared in my system but not in virtualbox. [both logs attached]

I also tried reinstalling with deb from page (and wiping local data), but again with no success. Beta channel suffers the same problem. It seems something else might have broken this, not chrome.

virtualbox
2.3 KB View Download
system
10.1 KB View Download
1. I tried to reproduce the issue in VirtualBox with the same Linux and Chrome versions - no success, it works like a charm and the buttons are there!
2. I tried to purge my Chrome and re-install it but there are still no buttons.
3. I know it's stupid but system restart didn't help either :)

curill, I'm just curious - do you have dual monitors and NVidia video card? Probably this is not the issue because I switched to one monitor mode and the buttons are still missing but I'm just guessing...

However I'm going to play with the Desktop Settings, KWin effects (KWin is the window manager I use), themes, etc.
Comment 8 by curill...@gmail.com, May 23 2014
I have intel HD4400, I do sometimes use dual monitor setup, but that does not have any effect.

I tried installing chrome version 34, buttons are there. After some more digging, I looked up version 35 changes, and v35 replaced GTK-based UI with "aura", which is multi-platform. That might be the cause of this problem, or rather part of it, since in virtualbox it worked just fine.
Comment 9 Deleted
OK, still no success - I tried to disable all KWin effects, change the theme, change window decorations, etc. and the buttons are still missing.
I still can't reproduce the issue in VirtualBox. I tried applying latest updates, effects and themes I have on the main distro and the buttons are still there.

And yes, curill, the major UI change in Chrome 35 for Linux is the Aura interface. I also noticed that Windows 8 users had similar problem with missing buttons and there is special "Windows 8 mode".
Comment 11 by Deleted ...@, Jun 3 2014
I confirm this bug on kubuntu 14.04.In meanwhile I come back to version 34.I hope that we will find a solution as soon as possible.
Comment 12 Deleted
Comment 13 by tzieb...@gmail.com, Aug 14 2014
It looks like the number of users affected by this issue is too small to put a lot of effort into fixing it but well, here is another:

Kubuntu 14.04 and Chrome 36.0.1985.125, gpu info attached
chrome___gpu.pdf
112 KB Download
Same on Ubuntu 14.04.  CHROMIUM. 

ChromIUM Version 36.0.1985.125 Ubuntu 14.04 (283153)

No Min/Max/Close when not using system toolbars. Alt-SpaceBar still pulls up the menu correctly though.
Comment 15 by sickv...@gmail.com, Sep 20 2014
Two very similar systems, one has this issue with chromium, the other does not.

Both kubuntu 14.04 64bit. Both Chromium 37.0.2062.94
Very similar software stacks on both. Both Intel platforms.Some HW is different, for example the one without buttons in chromium has Nvidia GPU, the other, with normal buttons, has Intel Iris. 
I've tried disabling GPU rendering and playing with chrome://keys on the affected system, but nothing helped.
Comment 16 Deleted
Comment 17 by Deleted ...@, Sep 25 2014
I have also this problem in linux mint 17 kde ... chrome without buttons to maximize

instantánea2.png
123 KB View Download
Comment 18 by xgd...@gmail.com, Oct 8 2014
I only start to have this problem since upgrade from 37 to 38 in ubuntu 14.04 unity.
Comment 19 by Deleted ...@, Oct 9 2014
I am having the same problem - I am using Ubuntu 14.04 with Chromium 37. The problem exists in Chrome 38 as well. 
Comment 20 by step...@cronius.nl, Oct 24 2014
Same problem here. It was OK in Ubuntu (Unity interface, don't know Chrome version number) 14.04, but I switched to KDE recently. Problem exist in 14.04 and 14.10. I'm using Chrome 38.0.2125.104 (64-bit).
Another user affected by the issue. I'm on Kubuntu 14.10 + Kubuntu Updates PPA + Kubuntu Backports PPA and the min/max/close buttons are missing whenever the window is maximized without using the system title bar and borders.

It doesn't make the browser unusable but it is a bit annoying.
i'm on Windows 7 64bits and the theme i installed removed those buttons (maximize, minimize, close)

just resetting to the default theme solves the problem.
(but i kinda like my theme...)
my chrome://about - Version 40.0.2214.5 dev-m (64-bit)
and chome://version (part of it)
Google Chrome	40.0.2214.5 (Official Build) dev-m
Revision	240346eaeec7677c23fdec64f3b3fc188adb9b82-refs/branch-heads/2214@{#11}
OS	Windows 
Blink	537.36 (@185000)
JavaScript	V8 3.30.33
Flash	15.0.0.223
User Agent	Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.5 Safari/537.36
Command Line	"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end
windowed.jpg
35.6 KB View Download
Comment 23 by Deleted ...@, Nov 12 2014
Same here, started after upgrading to 40.0.2214.5 dev-m (64-bit)

Only default theme works.

Chrome: Version 40.0.2214.5 dev-m (64-bit)
OS: Windows 8.1 64 bits
chrome.png
53.9 KB View Download
same here windows 7 on 64
chromium on 64 missing buttons when using themes but the buttons reapear if i switch to the default theme
Comment 25 by darkt...@gmail.com, Dec 23 2014
Same here! Attached you can see the button visible when not maximized, and gone when maximizing the window.
min.png
29.7 KB View Download
max.png
8.4 KB View Download
As I said before I have exactly the same problem on my system. Interestingly enough, I'm unable to reproduce it on a Virtual Machine. Even more strange is the fact that the problem doesn't work if I create a new user. I could possibly solve my issue by just creating a new user for myself and move everything there (or maybe clean up all my dot files from the home folder), but that's something that I wanted to avoid.
Also happens on one of my systems. Both Chromium and Chrome in Kubuntu 14.04. Now this only happens on a old notebook (MSI CR620) that I still have, for some reason Chromium and Chrome doesn't show this problem on my main desktop and laptop.

Maybe it has something to do with the screen resolution?
Comment 28 by Deleted ...@, Mar 9 2015
$DESKTOP_SESSION="gnome" google-chrome By using this from konsole works perfect , the buttons appear . but for a while now works not with that command to force . It is really annoying , I have no idea why , but it has to do with the window decorator and kde browser.
Cc: rnimmagadda@chromium.org
@resoridijon: Could you please let us know if this is the behavior you are expecting.

Screen-recording is attached.

Thank you.
375650.ogv
6.3 MB Download
@rnimmaga:
In fact the video is not quite correct because you're using Ubuntu with Unity desktop (and you have top bar similar to the OS X top bar) while I'm using the KDE desktop (and there is no such top bar in KDE). So once you hide system titlebar and border the icons are missing when browser is maximized (which is OK in Unity because you have the topbar buttons) but is not OK in KDE. I can send you a video if that wouldhelp... I'm 99% sure this is a Chrome+KDE issue.
The issue is still there, since version 36 at least. Currently on:

Version 43.0.2357.81 Ubuntu 14.10

This is with GTK3 3.12.2-0ubuntu15.3, which I guess is what's supposed to handle the buttons.
Comment 32 by step...@cronius.nl, Jun 15 2015
Just switched to Kubuntu 15.04, no problem anymore.
Comment 33 by Deleted ...@, Sep 7 2015
Same here:

OpenGL renderer string: Gallium 0.4 on AMD ARUBA (DRM 2.42.0, LLVM 3.6.2)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.1.0-devel (git-7dc8a34 2015-08-30 trusty-sarnex-ppa)

Wersja 46.0.2490.13 Built on Ubuntu 14.04, running on LinuxMint 17.2 (64-bit)

Problem appeared after installing cairo-dock on Linux Mint KDE.
IN response to #33: Interesting, I also have installed a dock manager - plasma-widget-smooth-tasks. I'll try to remove it and will tell you if this fixes the problem or not...
I Managed to fix it! It is not a Chrome issue. In "plasma-widget-smooth-tasks" in the "Behaviour" tab I unchecked the "Support Unity features" checkbox and now the buttons appeared! So everybody having this problem - make sure thet such Unity-related setting is disabled in your task manager. Big thanks to the advice from #33! Issue is SOLVED!
Comment 36 by Deleted ...@, Sep 13 2015
Thank you. Disabling Unity support in Smooth Tasks worked for me.
In response to #35. I'm on Ubuntu (not KDE) but do have Cairo-dock installed. I don't have 'plasma-widget-smooth-tasks' installed, so maybe it's something that both it and Cairo-dock install/set?  Can anyone advise on that this 'Support Unity features' actually does, as I can't find this setting. Thanks.
Comment 38 by sickv...@gmail.com, Sep 25 2015
I have the same issue, and do have Cairo-dock installed on Kubuntu. I uninstalled cairo-dock and it's dependencies, but nothing changed. It must be some config setting it changes in gtk libs, but I am not sure how to find it.
Finally! Thanks, #35. It was really easy to fix it. I also disabled the Unity support in Smooth Tasks and the buttons appeared after maximizing the window. I didn't need to restart the browser. Awesome.
Labels: -Needs-Feedback
Status: WontFix
Closing the issue as per the comment #39
Comment 41 by a...@chromium.org, Jan 19 2016
 Issue 470706  has been merged into this issue.
Comment 42 by smih...@gmail.com, Apr 12 2016
The problem reapeared in Plasma 5.6. I do not have Smooth Tasks installed.
Confirm problem
Arch Linux, Plasma 5.6
Chromium and Chrome lost window buttons
Screenshot_20160526_145308.png
26.5 KB View Download
Also had this problem since Plasma 5.6.  Plasma 5.6 added support for the Unity Launcher API to both the Icons-only Task manager and the default Task Manager.

It seems like the code to deal with the Unity Launcher API in Chromium doesn't distinguish between a desktop that just supports the API, and an actual Unity session.  Poking around in the Chromium source code I can see unity_service.cc which handles the Launcher API (and clearly treats KDE the same as Unity), but as a newb to the Chromium source code, I've not yet found where that hooks into losing the min/max/close buttons, where there would need to be a further check that it's actually Unity running and not an API-compatible desktop.

In the meantime, a workaround:  uninstall libunity, e.g. on modern Ubuntu:

sudo apt remove libunity9

This stops all the Unity-related functionality from working, so you lose the nice download progress bars and notification count in the taskbar, but it's less annoying than losing the min/max/close buttons.
I have got the same issue, chrome 50.something and chrome 51, ubuntu 16.04, with stock plasma 5.5 and with plasma 5.6 backport, but only on one computer, another doesn't show this behaviour. Removing libunity9 didn't do anything for me.
just found a leftover libunity6, removed that, and voila, buttons are back. 
Big thx! I remove libunity 7.1.4, buttons are back! 
Comment 48 by the...@gmail.com, Jul 20 2016
Another one seeing this bug.

Confirmed that removing libunity9 restores the buttons.

However, Pidgin requires libunity9 so it means a choice between having pidgin installed or having the window control buttons in Chrome and Chromium.

If anyone knows of a workaround to re-enable the buttons without removing libunity9 then that would be great
The workaround to remove/purge libunity9 doesn't work if you need to use Gtk applications that depend on it e.g deja-dup.
The Smooth Tasks widget doesn't seem to be available for Plasma 5 so the workaround in #c35 doesn't work either.

Bug is visible with this setup and with libunity9 installed: Version 51.0.2704.79 Built on Ubuntu 16.04, running on neon 16.04 (64-bit)

The only workaround I can see is to make sure the "Use system title bar and borders" is checked, at least then the application uses the KDE window decorations. Seems to be a general malaise around window decorations with Gtk/Unity applications in KDE.
 
Comment 50 by smih...@gmail.com, Sep 11 2016
The problem still persists in Kubuntu 16.04. The bug should be reopened.
Kubuntu 16.04 Bug still persists!
Comment 52 by dus...@gmail.com, Oct 22 2016
I confirm the problem with the latest Plasma and Chromium
Chromium 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04

Maximizing the window leaves only User identity button visible
Comment 53 by dus...@gmail.com, Oct 22 2016
Please, this bus is still affecting multiple users as confirmed above by the comments. Please, reopen and change to priority instead of WONTFIX.
Same problem when upgrade to Kubuntu 16.10.

Versión 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.10 (64-bit)

Fixed when I remove libunity9.

Comment 55 by kolor...@dlk.pl, Dec 18 2016
Same problem, one of the app required libunity and the chrome did lose buttons...

Arch (Antergos) so i need to use chrome with system bar.
My solution(sry for my english): we don't need to maximize chrome, just set maximized horizontally and set remember size to (1920, 10xx) in Special Window Setting of chrome. It'll use window mode but nearly maximize :)
aaaazzz.png
33.9 KB View Download
I'd like to try this workaround.  Where can I find the two window settings
you speak of?
Alt+ F3 -> More settings -> Special Window Setting -> Size & Position. And you need to turn off system title bar and border.
I am facing the same problem 
OS - Kubuntu 16.10
Chromium Version 55.0.2883.87 Built on Ubuntu , running on Ubuntu 16.10 (64-bit)

When maximized, only the user identity button is visible.

I have package libunity9 installed and I guess the problem started after installing pidgin, which also installed libunity. 

Prior to that all buttons were visible in chromium.
Same issue here, Kubuntu 16.04 with plasma desktop (upgraded from 14.04), buttons are missing.
I was able to resolve the issue by removing libunity.
Comment 62 by yat...@gmail.com, Mar 15 2017
What if I need libunity for some apps (like nautilus - which I like using even on KDE)? Is there a way to block Chrome from loading this lib?

Or some flag to force showing those buttons?
Comment 63 by zrenf...@gmail.com, Mar 19 2017
I believe this is the affecting line.

https://github.com/cvsuser-chromium/chromium/blob/01c8c2c2b5f2b9bba57cdc16f1d1bfc5fb9012aa/chrome/browser/ui/gtk/browser_titlebar.cc#L587


    void BrowserTitlebar::UpdateCustomFrame(bool use_custom_frame) {
      using_custom_frame_ = use_custom_frame;
      if (!use_custom_frame ||
          (browser_window_->IsMaximized() && unity::IsRunning())) {
        if (titlebar_left_buttons_vbox_)
          gtk_widget_hide(titlebar_left_buttons_vbox_);
        if (titlebar_right_buttons_vbox_)
          gtk_widget_hide(titlebar_right_buttons_vbox_);
      } else {

unity::IsRunning()

which is defined in unity_service.h

I do not see an environment variable that will unity features of a progressbar & download count while fixing this bug.

https://github.com/cvsuser-chromium/chromium/blob/master/chrome/browser/ui/gtk/unity_service.cc


I thought this must be a bug in the interaction between Unity and Chromium, but comment #63 gives the precise details, so you can workaround without having to remove libunity (which is quite important on my Ubuntu ... Nemo/Nautilus depends for example).

I just delete the link prior to launching Chromium, then restore it once launched, and that's good enough.

This kind of begs the question why that codes there in the first place. Maybe the Unity dash (which I don't use) causes issues? There's nothing in the code to suggest why.


Comment 65 by zrenf...@gmail.com, Apr 27 2017
So looking at this issue again made me realize my earlier links were to a 3 year out of date mirror. Here's links to the official source code:

https://chromium.googlesource.com/chromium/src/+/master/chrome/browser/ui/libgtkui/unity_service.cc

browser/ui/gtk/browser_titlebar.cc doesn't seem to exist anymore. Going to look through the source to find where the buttons are drawn now.


Comment 66 by zrenf...@gmail.com, Apr 27 2017
I think it was moved here:
https://chromium.googlesource.com/chromium/src/+/master/ui/views/window/custom_frame_view.cc

Still not sure where the logic tells it not to draw the buttons yet.

LayoutWindowControls() will draw the buttons I think, which is called in SizeConstraintsChanged() and Layout(). SizeConstraintsChanged() doesn't have any conditionals, so that's probably not it. Layout() will not call it though if ShouldShowTitleBarAndBorder() returns false. That function calls:

return !ViewsDelegate::GetInstance()->WindowManagerProvidesTitleBar(frame_->IsMaximized())

That function is defined in browser/ui/views/chrome_views_delegate.cc

bool ChromeViewsDelegate::WindowManagerProvidesTitleBar(bool maximized) {
  // On Ubuntu Unity, the system always provides a title bar for maximized
  // windows.
  views::LinuxUI* ui = views::LinuxUI::instance();
  return maximized && ui && ui->UnityIsRunning();
}


One possible workaround is by telling chrome that you are on a gnome session

env XDG_CURRENT_DESKTOP=GNOME google-chrome

Chrome will use Gnome keyring instead of kwallet though.
In case you still want to use kwallet you can do the following

env XDG_CURRENT_DESKTOP=GNOME google-chrome --password-store=kwallet

Comment 69 Deleted
Mergedinto: 594490
Status: Duplicate
Same problem here. Just switched to KDE from Gnome. No Close/minimize/maximize buttons if i have chrome in fullscreen.
Same issue - Plasma 5.11 ubuntu 16.04. Removing package libunity9 corrects the issue (restart chromium if it was running).
As discussed in  Bug #594490 , there will be a fix in Chrome v63.
Sign in to add a comment