Bug 370985 - Chrome doesn't show its own minimize/maximize/close buttons when maximized
Summary: Chrome doesn't show its own minimize/maximize/close buttons when maximized
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 5.7.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 371025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-17 05:02 UTC by Peter Eszlari
Modified: 2016-10-19 05:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eszlari 2016-10-17 05:02:47 UTC
When I maximize Google Chrome while it is using its own window decorations, the client side minimize/maximize/close buttons disappear. When tested with other WMs, this doesn't happen.

OS: Kubuntu 16.10

Reproducible: Always
Comment 1 Martin Flöser 2016-10-17 05:26:55 UTC
We don't have any control over Chrome's client side decoration. AFAIK this problem exists because of the progress indicator which Chrome interprets as "I'm on Unity" and hides the buttons. This is a pure bug by Chrome, it should use XDG_CURRENT_DESKTOP env variable instead. Please report to Chrome developers - there is nothing we can do about this.
Comment 2 Peter Eszlari 2016-10-17 22:21:01 UTC
*** Bug 371025 has been marked as a duplicate of this bug. ***
Comment 3 Peter Eszlari 2016-10-17 22:29:24 UTC
Actuallly, if you open Chrome and go to "chrome://gpu", you will find two entries:

Window manager | KWin
XDG_CURRENT_DESKTOP | KDE

If there is nothing you can do, how does it come, that other window managers (IceWM) and KWin 5.5 have no such problem?

A workaround that I found, is to remove libunity:
$ sudo apt remove libunity9
Comment 4 Martin Flöser 2016-10-18 05:31:10 UTC
(In reply to Peter Eszlari from comment #3)
 
> If there is nothing you can do, how does it come, that other window managers
> (IceWM) and KWin 5.5 have no such problem?

It's not a problem of KWin, but of Plasma providing a dbus service previously only used in Unity.  Apparently Chrome interprets the availability of that service as "I'm in Unity" instead of using the XDG_CURRENT_DESKTOP. Thus it removes the title bar as that's what's needed in Unity.

> 
> A workaround that I found, is to remove libunity:
> $ sudo apt remove libunity9

Which shows the problem is in Chrome: they misdetect the desktop.
Comment 5 Peter Eszlari 2016-10-18 19:00:00 UTC
(In reply to Martin Gräßlin from comment #4)

> > A workaround that I found, is to remove libunity:
> > $ sudo apt remove libunity9
> 
> Which shows the problem is in Chrome: they misdetect the desktop.

But I can have libunity installed and it still works with IceWM!
Comment 6 Martin Flöser 2016-10-19 05:23:41 UTC
> But I can have libunity installed and it still works with IceWM!

Start icewm in a Plasma session and chrome won't have it. It's a DBus protocol Chrome interacts with through libunity.