GNOME Bugzilla – Bug 692679
Make some mutter calls public
Last modified: 2013-02-06 05:04:46 UTC
See patches. This can clean up some very similar code in the Shell.
Created attachment 234590 [details] [review] screen: Add wrappers for monitor calculation functions That return a monitor index, so that they're introspectible
Created attachment 234591 [details] [review] Make work_area calculation funcs public and introspectible
Review of attachment 234590 [details] [review]: ::: src/core/screen.c @@ +2058,3 @@ +int +meta_screen_get_monitor_index_for_window (MetaScreen *screen, + const MetaMonitorInfo *monitor = meta_screen_get_monitor_for_rect (screen, rect); You don't need this, you can use meta_window_get_monitor()
Review of attachment 234591 [details] [review]: Yes.
Created attachment 234648 [details] [review] screen: Add an introspectible wrapper for find_monitor_for_rect Instead of returning a MonitorInfo, it returns a monitor index.
Review of attachment 234648 [details] [review]: Ok
Attachment 234648 [details] pushed as 32b7743 - screen: Add an introspectible wrapper for find_monitor_for_rect