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 580025 - Add ::window-added and ::window-removed signals to MetaWorkspace
Add ::window-added and ::window-removed signals to MetaWorkspace
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2009-04-23 20:58 UTC by Owen Taylor
Modified: 2009-04-24 14:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add ::window-added and ::window-removed signals to MetaWorkspace (3.13 KB, patch)
2009-04-23 20:58 UTC, Owen Taylor
none Details | Review

Description Owen Taylor 2009-04-23 20:58:21 UTC
Here's a patch to allow tracking adding and removing windows. It overlaps
with the n-windows property quite a bit, but allows more specific tracking.
It might be possible to remove the ::n-windows property given this addition.
Comment 1 Owen Taylor 2009-04-23 20:58:25 UTC
Created attachment 133213 [details] [review]
Add ::window-added and ::window-removed signals to MetaWorkspace

Add sigals to MetaWorkspace to allow tracking when windows are added
and removed. Note that on window creation that these signals are fired
before the window setup is totally complete, so they need to be used
with some care. (For example, the compositor, if present, has not
been notified of the new window.)
Comment 2 Owen Taylor 2009-04-24 14:02:04 UTC
Pushed to master on git.gnome.org. (Thanks for looking the patches over, Tomas)