From aea71fbd0119d31a69787985beb77bfac8842e93 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 27 Jun 2015 00:52:25 -0700 Subject: [PATCH] group: Select for property notifies on group leaders --- src/x11/group.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/x11/group.c b/src/x11/group.c index a09b9805c..9e5b576dc 100644 --- a/src/x11/group.c +++ b/src/x11/group.c @@ -50,6 +50,11 @@ meta_group_new (MetaDisplay *display, group->group_leader = group_leader; 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) display->groups_by_leader = g_hash_table_new (meta_unsigned_long_hash, meta_unsigned_long_equal);