diff options
author | Elijah Newren <newren@gmail.com> | 2006-01-03 23:06:53 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2006-01-03 23:06:53 +0000 |
commit | 524c16c8146384cb3959e3a116ffe003108b93c4 (patch) | |
tree | 1ae3883b1675d749183006e626e80dab8a8c910b /libwnck/util.h | |
parent | 41ee9da66e0fc27ce9fb6c85044340939abcc5bf (diff) | |
download | libwnck-524c16c8146384cb3959e3a116ffe003108b93c4.tar.gz |
Quit wrongly specifying the source indication in EWMH messages where we
2006-01-03 Elijah Newren <newren@gmail.com>
Quit wrongly specifying the source indication in EWMH messages
where we did so, and start specifying the source indication where
we didn't even specify it. Requires 'pager' (as defined in the
EWMH) apps to register as such to get this right. Fixes #325556.
* libwnck/private.h (_wnck_get_client_type):
* libwnck/util.h (enum WnckClientType, wnck_set_client_type):
* libwnck/util.c (wnck_set_client_type, _wnck_get_client_type):
New functions and an accompanying enum
* libwnck/util.c (static WnckClientType client_type):
static var for tracking what the client type is
* libwnck/xutils.c (_wnck_close, _wnck_keyboard_move,
_wnck_keyboard_size, _wnck_change_state, _wnck_change_workspace,
_wnck_activate):
Use _wnck_get_client_type() to determine the source indication
field instead of leaving it unspecified or taking a random (and
usually wrong) guess.
* configure.in: Interface addition, so make some random change to
CURRENT/REVISION/AGE that looks right. After googling and looking
at a number of other modules, it's nowhere close to clear to me as
to how this is supposed to change.
Diffstat (limited to 'libwnck/util.h')
-rw-r--r-- | libwnck/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libwnck/util.h b/libwnck/util.h index 257a45d..ca1312c 100644 --- a/libwnck/util.h +++ b/libwnck/util.h @@ -54,8 +54,15 @@ typedef struct } WnckResourceUsage; +typedef enum { + WNCK_CLIENT_TYPE_APPLICATION = 1, + WNCK_CLIENT_TYPE_PAGER = 2 +} WnckClientType; + void wnck_gtk_window_set_dock_type (GtkWindow *window); +void wnck_set_client_type (WnckClientType ewmh_sourceindication_client_type); + void wnck_xid_read_resource_usage (GdkDisplay *gdk_display, unsigned long xid, WnckResourceUsage *usage); |