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 133306 - add a WnckWindowType setter
add a WnckWindowType setter
Status: RESOLVED FIXED
Product: libwnck
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: libwnck maintainers
libwnck maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-03 13:30 UTC by Olivier Andrieu
Modified: 2005-07-19 10:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
API addition: wnck_window_set_window_type (2.24 KB, patch)
2004-02-03 13:30 UTC, Olivier Andrieu
accepted-commit_now Details | Review

Description Olivier Andrieu 2004-02-03 13:30:03 UTC
This patch adds a wnck_window_set_window_type for setting the window type
hint. I use this with Devil's pie to remove the decorations of some windows.

Code is adapted from _wnck_set_dock_type_hint in xutils.c .
Comment 1 Olivier Andrieu 2004-02-03 13:30:59 UTC
Created attachment 24019 [details] [review]
API addition: wnck_window_set_window_type
Comment 2 Havoc Pennington 2004-08-16 02:43:16 UTC
Comment on attachment 24019 [details] [review]
API addition: wnck_window_set_window_type

Should it share code with the xutils.c stuff?

To remove decorations I think the MWM hint (gtk_window_set_decorated()
equivalent) might be preferred...

Anyway, looks fine, thanks.
Comment 3 Olivier Andrieu 2004-08-17 14:22:50 UTC
ah right, gtk_window_set_decorated is better but I can't get it to work with
devilspie (short of pasting the whole code directly).
Comment 4 Havoc Pennington 2004-08-21 03:12:49 UTC
The point isn't to use gtk_window_set_decorated itself (it will only work on
windows in your own process), but to use the X property that
gtk_window_set_decorated modifies, the so-called "MWM hints" rather than 
_NET_WM_WINDOW_TYPE
Comment 5 Kjartan Maraas 2005-05-16 22:55:53 UTC
Should this be commited? Has been accepted-commit_now for a long time.
Comment 6 Elijah Newren 2005-07-18 04:02:27 UTC
Olivier: do you have a cvs account or do you need someone to commit this for you?
Comment 7 Olivier Andrieu 2005-07-19 10:20:58 UTC
Sorry, I didn't realize this was accepted. I've just committed it.