| Summary: | [HiDPI][GTK3] UI scaled too much on Wayland | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael Rapp <michael.rapp90> | ||||||
| Component: | UI | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | akurtakov, alhashash, browseria, dpelevin, dwagelaar, gautier.desaintmartinlacaze, gpothier, isahmedcevizci, jan.public, janboe.ye, lorenzo.bettini, maggu2810, marc+eclipse, michael.rapp90, michael.weirauch, mike, peter, robberphex, sewe, tom | ||||||
| Version: | 4.6 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | stalebug | ||||||||
| Attachments: |
|
||||||||
|
Description
Michael Rapp
Would you please try with latest I-build? There were a number of fixes to the way detection was done since M6 so maybe one of them fixed your case. Alright, I just installed the latest version using the Eclipse Installer (I am not sure, if this is what you meant with "I build") and indeed the UI elements now have the correct size even on Wayland. Thank you. I just tried out the latest Eclipse Neon (4.6.0) release and the exact same issue as I described it earlier occurs again, althought it seemed to be fixed in a previous build: A lot of icons are upscaled too much on Wayland with GTK3 as it can be seen on the originally uploaded screenshot, causing Eclipse to be unusable. My system's specifications are: OS: Arch Linux 64 bit DE: GNOME 3.20.2 on Wayland GTK version: 3.20.6 Display resolution: 2880 x 1620 px I'm not seeing what the attached screenshot shows on Wayland on Fedora 24 (although I'm noticing a few other, much more minor issues there; see bug 496923), so must suspect that this has perhaps something to do with how Wayland is pre-configured on Arch Linux? I don't think that there are any modifications of the Wayland configuration on Arch Linux as its against its philosophy of providing packages without any upstream modifications. You have tested this issue on a HiDPI screen with GTK3 enabled, right? Because this is what this bug report is about: The combination of GTK3, Wayland and HiDPI causes the UI to be up-scaled too much (see my original post). This becomes more obvious when varying the configuration as follows: - When using Wayland, a HiDPI screen and switching back to GTK 2 by starting Eclipse with the command "eclipse --launcher.GTK_version 2" the issue goes away. - When running a X session, even when using GTK 3 and a HiDPI screen, the problem does not occur. - When using Wayland and GTK3 on a regular screen, the UI is scaled correctly (it is not scaled at all). As I already mentioned, a similar issue occurs with LibreOffice running on the same system (https://bugs.documentfoundation.org/show_bug.cgi?id=99508). It has already been cofirmed by other users. As far as I know, both Eclipse as well as LibreOffice implement an application-side mechanism for HiDPI UI-scaling. However, GTK3 on Wayland causes applications to be up-scaled out of the box when run on HiDPI screens. So my guess would be, that either the UI-scaling performed by GTK or by Eclipse itself must be disabled in such case. I have the exact same issue on Fedora 24 using Wayland with a HiDPI display. GTK version: 3.20.8 Eclipse: 4.6.0-3.fc24 Display: 2880x1620 / 340mm x 190mm I have the exact same issue on Fedora 25, Wayland, Gnome 3.22, 3200x1800 resolution and the latest Oxygen. See my attachments on https://bugs.eclipse.org/bugs/show_bug.cgi?id=496923 I can confirm the same issue with Oxygen on Ubuntu 17.10. I also confirm the workaround (--launcher.GTK_version 2) mitigates the issue. I have the same issue with Eclipse Oxygen 1a and Neon 3, Antergos (Arch) Gnome 3.26. I have UHD 4K monitor (Dell XPS 15) and scaling set to 2. Can confirm the above with the following setup: Version: Oxygen.2 Release (4.7.2) Build id: 20171218-0600 Fedora 27, Gnome 3.26.2, Wayland 1.14.0, Eclipse 4.7.2 Same setup but with: Version: Photon Milestone 4 (4.8.0M4) Build id: 20171214-1849 - Prefs look ok - About looks ok - Toolbars look ok (except to much spacing around them, thus occupying more space compared to 4.7.2 with SWT_GTK3=0); Vertical separators scaled 2x from the looks - Menu Item spacing a bit too wide (both horizontally and vertically) - Tab Icons scaled twice from the looks (In reply to Michael Weirauch from comment #10) > Can confirm the above with the following setup: I can confirm this with Oxygen.2 and Photon M5 as well. OS: Ubuntu 17.10 64 bit DE: GNOME 3.26.2 on Wayland GTK version: 3.22.25 Display resolution: 3840 x 2160 px I have the same issue with Eclipse 2018-09 (4.9) RC1 on Wayland. Disabling Wayland with GDK_BACKEND=x11 or switching to GTK2 using SWT_GTK3=0 environment variables fixes the problem. OS: Fedora 28 64bit DE: GNOME 3.28.2 on Wayland GTK version: 3.22.30 Display resolution: 3840x2160 Created attachment 275751 [details]
Wrong icon scaling in menus, tabs, and toolbar handles
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |