Bug 563401 - [Wayland] window title bar is bigger than other gtk3 apps
Summary: [Wayland] window title bar is bigger than other gtk3 apps
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.16   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-20 09:32 EDT by Amit Mendapara CLA
Modified: 2020-07-31 07:01 EDT (History)
4 users (show)

See Also:


Attachments
eclipse.png (160.91 KB, image/png)
2020-05-20 09:33 EDT, Amit Mendapara CLA
no flags Details
gvim.png (50.72 KB, image/png)
2020-05-20 09:33 EDT, Amit Mendapara CLA
no flags Details
Eclipse has oval, instead of round, window buttons (close, maximize, minimize) in Wayland (61.40 KB, image/png)
2020-07-29 05:59 EDT, Amr Ibrahim CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Mendapara CLA 2020-05-20 09:32:46 EDT
When running under Wayland (Arch Linux, Gnome 3.36) The window title bar is bigger compared to other GTK3 apps. Looks like the min/max/close buttons have wrong padding.
Comment 1 Amit Mendapara CLA 2020-05-20 09:33:07 EDT
Created attachment 282956 [details]
eclipse.png
Comment 2 Amit Mendapara CLA 2020-05-20 09:33:26 EDT
Created attachment 282957 [details]
gvim.png
Comment 3 Amit Mendapara CLA 2020-05-20 09:34:56 EDT
See the attachments. The gvim app has smaller and round close button while the eclipse has oval shaped close button.
Comment 4 Amr Ibrahim CLA 2020-07-29 05:59:33 EDT
Created attachment 283736 [details]
Eclipse has oval, instead of round, window buttons (close, maximize, minimize) in Wayland

I'm affected by this bug too. Eclipse has oval, instead of round, window buttons (close, maximize, minimize) in Wayland GNOME Shell.

This issue happens in Wayland, and not in X11, in GNOME Shell on Ubuntu 20.04.

Steps to reproduce:
1. Log into a Wayland gnome-shell session
2. Install Eclipse IDE locally
3. Start Eclipse
4. Observe the window buttons (close, maximize, minimize)
5. The window buttons are oval (horizontally stretched) instead of round

See the attached screenshot.

Version information:
- Eclipse 2020-06 (4.16.0)
- GTK 3.24.20
- Ubuntu 20.04

GTK developers say that since this is happening only in Eclipse, it should be discussed with the Eclipse developers first:
https://gitlab.gnome.org/GNOME/gtk/-/issues/2947
Comment 5 Andrey Loskutov CLA 2020-07-29 06:13:35 EDT
(In reply to Amr Ibrahim from comment #4)
> GTK developers say that since this is happening only in Eclipse, it should
> be discussed with the Eclipse developers first:
> https://gitlab.gnome.org/GNOME/gtk/-/issues/2947

I could only assume we set some GTK flags for rendering our internal window area and that this somehow changes the way how window *decorations* are rendered. But this would be still a bug in GTK.
Comment 6 Gao Hao CLA 2020-07-29 07:04:11 EDT
https://bugs.eclipse.org/bugs/show_bug.cgi?id=563714#c13

I suggested them to remove title bar(for the reason that the title bar is too tall) and show info in menu bar instead, but they refused.
Comment 7 Amit Mendapara CLA 2020-07-29 11:18:20 EDT
Looks like some css from eclipse is causing this issue. A workaround is to create a `~/.config/gtk-3.0/gtk.css` with following content:

headerbar.default-decoration button.titlebutton {
 padding: 5px 0px;
 min-height: 0px;
}