1
0
Fork 0
mutter-performance-source/src/include
Owen W. Taylor 6726fcd25d Simplify relationship between mapping and visibility
Previously, changes to the visibility of a window could be indicated
by meta_compositor_map_window(), meta_compositor_unminimize_window(),
meta_compositor_set_window_hidden(), etc, with the exact behavior
depending on the 'live_hidden_windows' preference.

Simplify this so that visibility is controlled by:

 meta_compositor_show_window()
 meta_compositor_hide_window()

With an 'effect' parameter provided to indicate the appropriate
effect (CREATE/UNMINIMIZE/MINIMIZE/DESTROY/NONE.)

The map state of the window is signalled separately by:

 meta_compositor_map_window()
 meta_compositor_unmap_window()

And is used only to control resource handling.

Other changes:

 * The desired effect on show/hide is explicitly stored in
   MetaWindow, avoiding the need for the was_minimized flag.
   At idle, once we calculate the window state, we pass the
   effect to the compositor if it matches the new window
   state, and then clear the effect to start over for future
   map state changes.

 * meta_compositor_switch_workspace() is called before any windows
   are hidden or shown, allowing the compositor to avoid hiding
   or showing an effect for windows involved in the switch.
   http://bugzilla.gnome.org/show_bug.cgi?id=582341

 * Handling of post-effect cleanups for MutterWindow are
   simplified - instead of trying to do different things based
   on the individual needs of different effects, we just wait until
   all effects complete and sync the window state to what it
   should be.

 * On unmap, once we destroy the pixmap, we tell ClutterX11Pixmap
   that we've done so, so it can clean up and unbind. (The
   unbinding doesn't seem to be working properly because of
   ClutterGLXPixmap or video driver issues.)

http://bugzilla.gnome.org/show_bug.cgi?id=587251
2009-07-06 00:16:23 +01:00
..
all-keybindings.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
alttabhandler.h Create a MetaAltTabHandler abstraction to allow alternate implementations 2009-05-04 10:25:58 -04:00
alttabhandlerdefault.h Create a MetaAltTabHandler abstraction to allow alternate implementations 2009-05-04 10:25:58 -04:00
atomnames.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
boxes.h Cleanup: split MetaSide from MetaDirection 2009-03-17 16:53:01 -04:00
common.h Emit signals when workspaces are added, removed or switched 2009-07-04 10:57:52 +02:00
compositor-mutter.h Separate source and header files for MutterWindow 2009-07-05 23:56:51 +01:00
compositor.h Simplify relationship between mapping and visibility 2009-07-06 00:16:23 +01:00
core.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
display.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
errors.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
frame.h src/include/frame.h src/include/display.h src/include/xprops.h 2008-05-19 00:00:09 +00:00
group.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
keybindings.h Use GDestroyNotify instead of custom type, for better introspectability 2009-03-25 10:50:40 -04:00
main.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
mutter-plugin.h Fix broken MUTTER_PLUGIN_TYPE -> MUTTER_TYPE_PLUGIN 2009-06-22 10:38:09 +08:00
mutter-window.h Separate source and header files for MutterWindow 2009-07-05 23:56:51 +01:00
prefs.h Remove wireframe mode and old effects framework 2009-06-30 09:35:12 -04:00
resizepopup.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
screen.h Emit signals when workspaces are added, removed or switched 2009-07-04 10:57:52 +02:00
tabpopup.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
types.h Expose keybindings data types; add user_data parameter the handler signature. 2009-01-29 14:53:03 +00:00
ui.h Add better tracking of real stacking order 2009-06-29 23:04:59 -04:00
util.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
window.h Move meta_window_delete() to public API 2009-06-19 11:48:33 +08:00
workspace.h Emit signals when workspaces are added, removed or switched 2009-07-04 10:57:52 +02:00
xprops.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00