The officially official Devuan Forum!

You are not logged in.

#26 2025-11-01 03:20:41

EDX-0
Member
Registered: 2020-12-12
Posts: 161  

Re: noCSD for GTK4

ah yes i can explain why even when the ubuntu patch does remove the Client Side Decorations no Server Side Decorations are added, the EWMH and _MOTIF_WM_HINTS, to be more precise the MWM_DECOR_TITLE hint which when set requests the window manager to NOT add titlebars (Server Side Decorations) to a window be it because the window is of type dialog or some other reason like having Client Side Decorations, the ubuntu patch manages to disable the Client Side Decorations on gtk4 but fails to set the appropriate window hints to allow the window manager to decorate the window with a titlebar, if you got a configurable window manager that is a non issue as ya can simply set the window manager to ignore the title hint for gtk4 apps.

for example on greenjames suggestion of using a CSS hack to hide window buttons on gtk4 apps and then just add decorations through the window manager selectively ignoring the title hints of gtk4 apps.

some reference from the hand of awesome wm documentation:
https://awesomewm.org/doc/api/classes/c … o_titlebar

Offline

#27 2025-11-01 13:33:47

tux_99
Member
Registered: 2025-06-17
Posts: 32  

Re: noCSD for GTK4

@EDX-0 Thanks for the explanation.

if you got a configurable window manager that is a non issue as ya can simply set the window manager to ignore the title hint for gtk4 apps.

But then you would get SSDs even on windows that aren't supposed to have any, like for example dialog windows, or not?

Also do you mean that the WM needs to be configured this way for each gtk4 app individually or is there a way to do it for all gtk4 apps in one go?

Doing this at WM level doesn't seem ideal to me as it needs to be done for every WM differently, if there was a way to force the gtk4 libs themselves to omit these flags that suppress SSD (I mean at runtime, not by modifying the source code), then that would IMHO be the better solution.

I'm primarily interested in a solution for XFCE but if it could be done in a way that works for all WMs that would be even better.

Last edited by tux_99 (2025-11-01 13:38:31)

Offline

#28 2025-11-01 14:45:20

greenjeans
Member
Registered: 2017-04-07
Posts: 1,249  
Website

Re: noCSD for GTK4

Y'all need to check out the link(s) I posted, that guy has his version of nocsd-gtk4 working pretty well, I haven't downloaded it or tried to package it yet, there's a package for arch but no .deb packages yet.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded October 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#29 2025-11-01 16:53:02

tux_99
Member
Registered: 2025-06-17
Posts: 32  

Re: noCSD for GTK4

@greenjeans Thanks for reminding me, as soon as I find some time for it I will try that GTK4-NoCSD that you linked previously.

Offline

#30 2025-11-01 19:41:15

EDX-0
Member
Registered: 2020-12-12
Posts: 161  

Re: noCSD for GTK4

on the case of my wondow manager of choice, awesome wm, it can match rules per window class, name and some other properties, but yeh ideally having the library provide the supression of the hints is better, would have to check out the noscd gtk4 posted by greenjames and try compiling it, guess some package can be crafted taking the nocsd gtk3 as a baseline.

Offline

#31 2025-11-01 19:53:51

golinux
Administrator
Registered: 2016-11-25
Posts: 3,580  

Re: noCSD for GTK4

@EDX-0 . . . If you are referring to the Vuu-do Linux creator, try "greenjeans".

Offline

#32 2025-11-01 20:06:08

EDX-0
Member
Registered: 2020-12-12
Posts: 161  

Re: noCSD for GTK4

posted that from phone and autocorrect screwed me over, forgot to turn that off in this phone lol

Offline

#33 2025-11-01 20:53:20

golinux
Administrator
Registered: 2016-11-25
Posts: 3,580  

Re: noCSD for GTK4

Happy to help configure your phone!

Offline

#34 2025-11-01 22:23:47

EDX-0
Member
Registered: 2020-12-12
Posts: 161  

Re: noCSD for GTK4

got it configured already, this is a new phone i got from my mobile plan earlier this week so i'm still finishing the setup

anyway, back on track i'll see later once i'm home how compiling the GTK4-NoCSD library and adding it to the LD_PRELOAD env var goes and give some feedback.

Offline

#35 2025-11-01 23:33:23

zapper
Member
Registered: 2017-05-29
Posts: 1,149  

Re: noCSD for GTK4

I have already seen gtk4 desktop environments... just bad...

qt6 is similar in that way.

The newer stuff keeps going for flashy nonsense. I hate it...

Smh to those who love it.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#36 2025-11-01 23:44:56

EDX-0
Member
Registered: 2020-12-12
Posts: 161  

Re: noCSD for GTK4

unless someone (probably not from the forum), forks and continues the work of stlwrt to have a toolkit library compatible with gtk2 to gtk4 with whichever rendering appearance is desired all that complaining about qt6, gtk4 and the eventually upcoming qt7 and gtk5 will accomplish is to have a bunch of written complains in our corner of the internet

stlwrt: https://github.com/thesquash/stlwrt
ubuntu mate forum thread (where stlwrt repo got posted): https://ubuntu-mate.community/t/horribl … 4/22028/63

Offline

#37 Today 01:07:41

zapper
Member
Registered: 2017-05-29
Posts: 1,149  

Re: noCSD for GTK4

@EDX-0 I hope he picks it up again


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

Board footer