-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows requesting decorations get double decorations #244
Comments
I can confirm this, although I'm not sure whether it's a gala issue, a stylesheet issue or an issue with the applications themselves. The further information I can add is that this seems to affect wxPython applications. For example, you can run the wxPython "Hello, World" application from their website and see the same effect: https://www.wxpython.org/pages/overview/#hello-world |
Perhaps there is a way to patch it around, after all that problem didn't exist on Loki. Edit: As I said earlier, widgets tend to pop out of the parent window in PlayOnLinux, and seems like this is also the case with wxPython apps, since they also have the same problems. To confirm my assumption I will try to make a wxPython app with something very long that violates the window's boundaries, and see if the second boundary gala applies will cut the widget. If yes, then my assumption is correct, and this might be an interesting clue for you. Will do when I find the time. EDIT: It's been quite a while and I can't seem to find sufficient time to try this. I think I'll call this off. |
Further information on this: I've done some testing and ruled out the elementary stylesheet by running both Ubuntu Budgie and Ubuntu GNOME (both 18.04) and using the elementary stylesheet. In these cases, the issue cannot be reproduced. So it's something in the window manager or desktop environment. The MySQL workbench case is interesting though, as I think that's a native GTK3 app, so I'll have to do a bit more digging into that one and see if there's anything obvious there. |
This comment has been minimized.
This comment has been minimized.
I'm seeing this issue with Juno now since recently doing a clean install. Used to run Playonlinux on Loki just fine. Any suggestions? |
I'm noticing the same problem with POL and Eclipse on Juno. It seems there is a high percentage of apps that have this problem. With POL it makes the app non functional. |
Found out some more information on this today. The affected applications are requesting extra window decorations via legacy Motif Window Manager hints. It's possible to build a Vala/GTK3 sample that reproduces the issue with the following code:
Still need to figure out why Gala does stuff with these when GNOME shell and Budgie don't. |
Same issue using the BOINC Manager Application. I guess it also use wxPython. |
There is another open issue concerning the same problem: #299 |
@davidmhewitt Loki is not impacted. So by comparing changes done you should be able to see what's causing this issue? |
Same issue using Dbeaver 5.2.4 (version 5.2.3 OK), Eclipse and Play on Linux. |
Some further information: However, if you install and run a GNOME session on elementary (still using the stylesheet and config, etc...), you still get the double decorations. I even installed an unpatched version of mutter and this still happens. So it would appear that the issue lives in some config or other patched packages rather than Gala itself, as it can be reproduced with vanilla Mutter running on elementary. |
@davidmhewitt The issue was also present in the beta versions of Juno. So I think it was introduced again during the development of Juno. I never had this issue while running Loki. Same goes with GNOME Shell as you said, I didn't had this issue too. |
Okay, found the cause. There's a shell script ( But, if you have an application that's experiencing this issue, run it with |
This is the cause of elementary/gala#244 Can anyone remember why this is still here and what issues removing it would cause?
PlayOnLinux, smartsvn, Eclipse, dbeaver are all Java apps and, if I'm not wrong, using the same graphics toolkit, SWT (that uses Gtk+ in Linux). I think the problem lies there. |
As I have written above, this is not caused by Gala, and trying to do anything in Gala to fix this would be really hacky if not impossible. Fixing this involves patching GTK. In vanilla GNOME, dialogs are coded to have CSD by default because they want put the action buttons in the headerbar (e.g. in the save dialog, the save button is in the top right of the window, in the titlebar). However, when you change the GTK setting that stops them from being in the headerbar (because this doesn't meet elementary UI guidelines), dialog windows become server side decorated by default, this is hardcoded into GTK. So, to enforce CSD on dialogs, elementary exports |
I'm not sure if I follow you but if there is no way to have both apps with AND without CSD at the same time, for the same GTK 3.x version then I think it's a bug that should be fixed. I assume there is an open GTK issue for this. |
I have this issue in DisplayCAL calibration software. I have reported it to the developer. His reply was:Hi,
Please report upstream to python-wxgtk3.0 package. |
So there is no possibility of its fix with regular updates? |
Worked in eOS 5.0 Juno PlayOnLinux Modified Desktop Entry
|
This worked for me as well. Finally, PlayOnLinux without the extra window. Thank you!
|
Just to report it's still an issue on DBeaver, making it unusable (some buttons on dialogs are hidden no matter the size of the window). |
@Akryum you can use the suggested workaround: So, eg: |
Yeah I did that, but still just a workaround :( |
@Akryum better than nothing. Bear with, it at least for now. I've done this with POL, and didn't have to do anything else ever since, so I don't think it's such an annoying workaround. |
It's pretty annoying, since I have to do it again every time I update DBeaver 😓 |
I have just hit another issue: with the The folder icon does nothing when I add Is there anything else I can try? |
Causes various issues when not set * elementary/files#971 * elementary/default-settings#103 * cassidyjames/ideogram#26 However this can cause certain problems in gala * elementary/gala#244
I am not a developer, just a regular user using Hera recently upgraded from Juno. I am seeing this problem for Veracrypt and Youtube-dl-gui. Both these program show the following when started form terminal. ***** BUG *** \I have also recently used pop OS! and this problem doesn't appear there. |
See elementary/gala#244 (cherry picked from commit ede5fff)
See elementary/gala#244 (cherry picked from commit ede5fff)
When I ran PlayOnLinux on elementary OS Juno build I have I noticed gala givesit two decorations: one normally and one around the whole window, including the shadows. It is really ugly, and don't know if it applies to other apps.
PS: Tried to see if other apps have the same problem, mainly non GTK3 apps, but the ones I tried (LibreOffice, VLC & "about XFCE4" that I found in the appcenter) don't have such problems. I believe it has to do with the too-small-default-sized window of it, thus making gala think elements go out of it and thus making gala think it needs another decoration for it as a second widget border. You can see how the list widget on the "PlayOnLinux Install menu" overlaps the it's parent window.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: