Does anybody know how to set a window always on bottom in rust gtk4? set_type_hint() does not exist.

you are viewing a single comment's thread
view the rest of the comments
[–] 33 points 1 year ago* (2 children)

You'll have to look into GTK's Layer Shell implementation.

Look at the source of Eww. It's written in Rust, it uses GTK (or GDK?), and it has a config option that opens the windows in the bottom layer.

https://github.com/elkowar/eww/blob/fddb4a09b107237819e661151e007b99b5cab36d/crates/eww/src/display_backend.rs#L61

  • source
  • hideshow 2 child comments
  • [–] [S] 2 points 1 year ago* (1 child)

    So, as far as I understand, this works with gtk3, which will still work with Xwayland, but will eventually be phased out? Anyway, I think I will just use gtk4 layer shell and hope it supports all compositors eventually

  • source
  • parent
  • hideshow 1 child comment
  • [–] 8 points 1 year ago

    It looks like GNOME is the only compositor that doesn't support the wlr_layer_shell protocol, which is anything but surprising. Smithay works (Cosmic and Niri), wlroots works, Kwin and Mir work, Aquamarine (Hyprland) is not listed, but I know that it works.

  • source
  • parent