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 66719 - Missing window types
Missing window types
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
1.3.x
Other Linux
: Normal normal
: future
Assigned To: gtk-bugs
gtk-bugs
: 62171 87753 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-12-11 13:05 UTC by Thomas Leonard
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Leonard 2001-12-11 13:05:12 UTC
The new WM spec lists the following window types:

_NET_WM_WINDOW_TYPE_DESKTOP, ATOM
_NET_WM_WINDOW_TYPE_DOCK, ATOM
_NET_WM_WINDOW_TYPE_TOOLBAR, ATOM
_NET_WM_WINDOW_TYPE_MENU, ATOM
_NET_WM_WINDOW_TYPE_DIALOG, ATOM
_NET_WM_WINDOW_TYPE_NORMAL, ATOM

(from http://www.freedesktop.org/standards/wm-spec/x186.html)

GDK doesn't only provides four of these. The others should be added.
Also, the spec allows for new types to be specified, so long as one of
the about is provided as a default.

Therefore, there should be a way to specify additional types by Atom.
Comment 1 Owen Taylor 2001-12-11 19:07:35 UTC
Can't be fixed until 2.2. A "type by atom" API would need
to be something like gdk_x11_add_extra_type_hint() or 
something, since it isn't a a portable concept.
Comment 2 Matthias Clasen 2002-04-28 12:47:43 UTC
*** Bug 62171 has been marked as a duplicate of this bug. ***
Comment 3 Owen Taylor 2002-07-30 22:23:55 UTC
*** Bug 87753 has been marked as a duplicate of this bug. ***
Comment 4 Sven Neumann 2003-04-07 12:04:51 UTC
This bug report should probably be closed as FIXED since GTK+-2.2
provides the desired API.
Comment 5 Owen Taylor 2003-04-07 16:42:40 UTC
2002-09-24  Havoc Pennington  <hp@redhat.com>

        * gdk/gdkwindow.h (GdkWindowTypeHint): add missing type hint
        values
 
Comment 6 Manuel Clos 2003-04-07 19:44:36 UTC
Trying to use this feature results into a new problem,

if I gtk_window_set_type_hint ()  the window while it is visible, I
get an error:

Gtk-CRITICAL **: file gtkwindow.c: line 1905
(gtk_window_set_type_hint): assertion `!GTK_WIDGET_VISIBLE (window)'
failed

and if I hide the window, set the new hint, then show it again, the
metacity puts the window in the top left position as it were a new window.

Should I file a bug against metacity? or where is the problem?

Thanks.
Comment 7 Havoc Pennington 2003-04-07 20:12:32 UTC
not a bug, you can't change the type of a window while it's showing, 
and if you hide/show a window then it's supposed to be placed 
like a new window.

It doesn't make sense to change a window's type, either it has 
the type or it doesn't.
Comment 8 Manuel Clos 2003-04-07 21:03:47 UTC
ok, I see.

I was tracking this bug for the "always on top" case, where you have a
chek_menu_item that toggles "always on top", this is, without hiding
the window.

Anyway, I have tried all GDK_WINDOW_TYPE_HINT_* types and metacity
never leaves the window on top. I will open a metacity bug for the latter.

Thanks.
Comment 9 Havoc Pennington 2003-04-07 21:09:42 UTC
On top is a separate thing from window types, there's an 
on top hint that's different. Not sure if we added GTK support 
for the on top hint.