After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 87753 - No way to set a window as "always on top"
No way to set a window as "always on top"
Status: RESOLVED DUPLICATE of bug 66719
Product: gtk+
Classification: Platform
Component: Widget: Other
2.0.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-07-09 15:39 UTC by Manuel Clos
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Manuel Clos 2002-07-09 15:39:25 UTC
I looked at xmms code to see how to set a window "always on top", it is
very complicated.

I would like a gtk_window_set_always_on_top(GtkWindow *window, gboolean
always), or something similar.

The app is a drop area, and also contains information.

Not a gnome applet -> It can be moved at any pos.
Not a dnd issue -> it must be _always_ on top, no just when the user drags
something.

Thanks.
Comment 1 Matthias Clasen 2002-07-15 08:57:55 UTC
It is a mistake to design apps so that they expect their windows to
be always on top. 
Better make your app react appropriately to being
lowered. Adding 
gtk_window_set_always_on_top would just invite more
bad application design.
Comment 2 Manuel Clos 2002-07-15 09:37:37 UTC
Create a gnome panel (floating type), add an applet to it. Isn't it
always on top?

I don't want to depend on gnome-panel.

Do you mean I tell users they need gnome just to have an "applet"
always on top?

It is a 48x48 window where you can drag n drop urls, and shows you info.

"Always on top" is an option (if I can get to implement it).
Comment 3 Matthias Clasen 2002-07-15 10:11:17 UTC
Depends on the window managers handling of the dock window type.
Fullscreen 
windows will likely cover dock windows.
Comment 4 Manuel Clos 2002-07-15 10:22:53 UTC
Yes, in fullscreen mode you don't want any app to "stay on top".

What about a func to set a window at dock stack level? in fact I think
this is what xmms does.

Comment 5 Matthias Clasen 2002-07-15 11:01:56 UTC
You want to use gtk_window_set_type_hint. Unfortunately, it doesn't
yet support 
dock type; see bug 66719
Comment 6 Owen Taylor 2002-07-30 22:23:57 UTC

*** This bug has been marked as a duplicate of 66719 ***