Hi! Today I tried a trick to disable (optionally) the CSD (Client-Side Decorations) in GTK+3 apps, which is forced since 3.12. For that, you need to patch it first. Luckily, the GTK+3 ebuild contains the epatch_user instruction, so it lets us apply our patches.
You can save it with thenameyouwant.patch and put it inside /etc/portage/patches/x11-libs/gtk+:3/ (if that path doesn't exist, create those directories).
Then, reinstall it:
emerge -1 gtk+:3
Then, you have 2 options: As a system environment variable, you can create a file named gtk3nocsd.sh with the following content:
#!/bin/sh
export GTK_DISABLE_CSD=1
And put it into /etc/profile.d.
Or, an alternative at user level, you can add this line in your .xprofile or .profile in your $HOME:
export GTK_DISABLE_CSD=1
After GTK+3 recompiled successfully, restart the session, and voil?!
PS: The CSS method just partially solves the problem, but not the shadow drawing, which is delayed. This won't happen with this tweak.
Question
jorgicio
Hi! Today I tried a trick to disable (optionally) the CSD (Client-Side Decorations) in GTK+3 apps, which is forced since 3.12. For that, you need to patch it first. Luckily, the GTK+3 ebuild contains the epatch_user instruction, so it lets us apply our patches.
The patch is the following:
You can save it with thenameyouwant.patch and put it inside /etc/portage/patches/x11-libs/gtk+:3/ (if that path doesn't exist, create those directories).
Then, reinstall it:
Then, you have 2 options: As a system environment variable, you can create a file named gtk3nocsd.sh with the following content:
And put it into /etc/profile.d.
Or, an alternative at user level, you can add this line in your .xprofile or .profile in your $HOME:
After GTK+3 recompiled successfully, restart the session, and voil?!
PS: The CSS method just partially solves the problem, but not the shadow drawing, which is delayed. This won't happen with this tweak.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts