chjj / compton

A compositor for X11.
Other
2.25k stars 500 forks source link

Gtk3 WM Window borders missing #250

Open ghost opened 10 years ago

ghost commented 10 years ago

Hi,

my titlebars are missing on GtkHeaderbar windows when using Gtk3 with an external WM, are there any fixes known?

with-compton without-compton

my compton.conf: http://pastebin.com/6fV7mX0i my gtksettings: http://pastebin.com/cUYjZVcx

WorMzy commented 10 years ago

I don't use GTK3, but this is a problem with your WM isn't it? Why do you think compton is at fault?

ghost commented 10 years ago

because as you can see in the second screenshot when i disable compton i have a titlebar

WorMzy commented 10 years ago

What WM are you using? Can you check the Xorg log/systemd journal and see if it's crashing when compton is launched? If not, try running it in the foreground in a terminal and see if any messages are displayed when you start/stop compton.

You could try starting compton with 'compton --config /dev/null' to see whether your config is causing the problem.

ghost commented 10 years ago

well i guess it isn't comptons fault since the same happens if I enable composing in xfwm-->probably just another gtk3 bug because there are no issues with qt or gtk2

richardgv commented 10 years ago

Sorry for the late reply.

I suppose the issue you saw is related to how GTK+ 3 implements CSD:

http://blogs.gnome.org/mclasen/2014/01/13/client-side-decorations-continued/ https://wiki.archlinux.org/index.php/GTK%2B#Client-side_decorations

GTK+ 3 disables decorations on windows with _MOTIF_WM_HINTS when it found the screen is composited, in this case.

rainerborene commented 9 years ago

I'm using i3 window manager and I can confirm this bug.

rainerborene commented 9 years ago

https://github.com/PCMan/gtk3-nocsd solves the problem.