mirror of
https://github.com/brl/mutter.git
synced 2025-03-28 14:13:47 +00:00
group: Select for property notifies on group leaders
This commit is contained in:
parent
b55f792302
commit
aea71fbd01
@ -50,6 +50,11 @@ meta_group_new (MetaDisplay *display,
|
|||||||
group->group_leader = group_leader;
|
group->group_leader = group_leader;
|
||||||
group->refcount = 1; /* owned by caller, hash table has only weak ref */
|
group->refcount = 1; /* owned by caller, hash table has only weak ref */
|
||||||
|
|
||||||
|
XWindowAttributes attrs;
|
||||||
|
XGetWindowAttributes (display->xdisplay, group_leader, &attrs);
|
||||||
|
XSelectInput (display->xdisplay, group_leader,
|
||||||
|
attrs.your_event_mask | PropertyChangeMask);
|
||||||
|
|
||||||
if (display->groups_by_leader == NULL)
|
if (display->groups_by_leader == NULL)
|
||||||
display->groups_by_leader = g_hash_table_new (meta_unsigned_long_hash,
|
display->groups_by_leader = g_hash_table_new (meta_unsigned_long_hash,
|
||||||
meta_unsigned_long_equal);
|
meta_unsigned_long_equal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user