GTK 4: how to replace gtk_window_set_keep_above() and gtk_window_set_keep_below()?

gtk_window_set_keep_above() and gtk_window_set_keep_below() were removed from GTK 4. Is there something to replace them ?

No, there aren’t any replacements.

Not all windowing systems provide the ability for applications to control the window stacking order; Wayland is one of those.

The stacking order is under the control of the window manager, as a privileged component; GTK can integrate with the window manager to offer the ability to the user to control the window state, but it’s not really up to the toolkit to provide API to do that to the application developer.

You can use platform-specific API, if you want to access that functionality.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.