Disable GTK3 window managementPosted: 2018-11-04
Some GTK3 programs, such as
Evince, use their own custom title bar with minimize, maximize and close buttons. Under Xfce, I have experienced hiccups with Evince when maximized: it would refuse to unmaximize the window (or rather, does not remember the dimensions of the unmaximized window) and behaves kinda “sticky” to desktop borders. In another case, if I have the compositor turned off, the window edges are not smoothened and look ugly.
Now, I can start a GTK3 program like this:
To make it the default for all GTK3 programs, I followed the instructions by the author and added these to my .bashrc on a Slackware64 14.2 system:
export GTK_CSD=0 export LD_PRELOAD="/usr/lib64/libgtk3-nocsd.so.0"
I boot in runlevel 3 and start Xfce by simply typing
startx. I had to log out and in for the changes to take effect. When I boot into runlevel 4 with a login manager such as LXDM, this approach has no effect. Instead, I had to put the above lines in my
.profile, as advised here.