r/GTK

▲ 7 r/GTK+1 crossposts

I’m building a small OSD app using GTK4. Right now I use gtk4-layer-shell, but I want to remove it and rely only on native GTK4 so it works across all display servers (Wayland, X11, etc.).

I just need simple OSD behavior:

  • borderless window
  • always on top

What is the correct GTK4 way to implement this without gtk4-layer-shell?

Here’s my repo: https://github.com/Nithin-3/ozhium-ollium
This is the function I want to change: https://github.com/Nithin-3/ozhium-ollium/blob/main/src/ui/window.c

reddit.com
u/ninja-Nithin — 11 days ago
▲ 6 r/GTK+1 crossposts

i tried

#workspaces button.inactive + button.active /*(this one is wrong i know)*/

#workspaces button.inactive:has(+ button.active)

nothing see to be working for the button that's behind the active button

following worked, cuz its easy

#workspaces button.active + button

but i wanna round border-radius of button that's behind active button, i wanna make it look like the second image, how do i specify this? help!!!

u/its_me_gentle_man — 9 days ago