GNOME Bugzilla – Bug 691744
window: Add convenience method for workspace checks
Last modified: 2013-01-18 20:45:43 UTC
This is designed to replace code like: window.get_workspace() == workspace || window.is_on_all_workspaces(); which is a bit unwieldy.
Created attachment 233473 [details] [review] window: Add convenience method for workspace checks
Review of attachment 233473 [details] [review]: I prefer "meta_window_is_on_workspace()", is_displayed implies that the window is visible, and conflicts with showing_with_its_workspace.
Created attachment 233790 [details] [review] window: Add convenience method for workspace checks This is designed to replace code like: window.get_workspace() == workspace || window.is_on_all_workspaces(); which is a bit unwieldy.
Review of attachment 233790 [details] [review]: Yes. ::: src/core/window.c @@ +10404,3 @@ + * @workspace: a #MetaWorkspace + * + * Returns whether @window is displayed on @workspace, *or whether it Typo.
Created attachment 233797 [details] [review] window: Make meta_window_located_on_workspace() public We have some code in gnome-shell that does the equivalent of: window.get_workspace() == workspace || window.is_on_all_workspaces(); which is a bit unwieldy. We already have a method in mutter, so use that and document it.
Created attachment 233798 [details] [review] Use meta_window_located_on_workspace() in more places
Review of attachment 233797 [details] [review]: Yes.
Review of attachment 233798 [details] [review]: Yes.
Attachment 233797 [details] pushed as d8eb47e - window: Make meta_window_located_on_workspace() public Attachment 233798 [details] pushed as df15843 - Use meta_window_located_on_workspace() in more places