window: Add documentation to should_be_showing(_on_workspace)()
It's a bit unclear whether "should be shown" takes ability to actually immediately show into account. Make this clear in a function doc comment. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3475>
This commit is contained in:
@ -684,7 +684,6 @@ void meta_window_resize_frame_with_gravity (MetaWindow *window,
|
|||||||
gboolean meta_window_should_be_showing_on_workspace (MetaWindow *window,
|
gboolean meta_window_should_be_showing_on_workspace (MetaWindow *window,
|
||||||
MetaWorkspace *workspace);
|
MetaWorkspace *workspace);
|
||||||
|
|
||||||
/* Return whether the window should be currently mapped */
|
|
||||||
gboolean meta_window_should_be_showing (MetaWindow *window);
|
gboolean meta_window_should_be_showing (MetaWindow *window);
|
||||||
|
|
||||||
void meta_window_update_struts (MetaWindow *window);
|
void meta_window_update_struts (MetaWindow *window);
|
||||||
|
@ -1690,6 +1690,15 @@ window_has_buffer (MetaWindow *window)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* meta_window_should_be_showing_on_workspace:
|
||||||
|
*
|
||||||
|
* Tells whether a window should be showing on the passed workspace, while
|
||||||
|
* taking whether it can be immediately be shown. Whether it can be shown or
|
||||||
|
* not depends on what windowing system it was created from.
|
||||||
|
*
|
||||||
|
* Returns: %TRUE if the window should and can be shown.
|
||||||
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
meta_window_should_be_showing_on_workspace (MetaWindow *window,
|
meta_window_should_be_showing_on_workspace (MetaWindow *window,
|
||||||
MetaWorkspace *workspace)
|
MetaWorkspace *workspace)
|
||||||
@ -1710,6 +1719,15 @@ meta_window_should_be_showing_on_workspace (MetaWindow *window,
|
|||||||
meta_window_showing_on_its_workspace (window));
|
meta_window_showing_on_its_workspace (window));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* meta_window_should_be_showing:
|
||||||
|
*
|
||||||
|
* Tells whether a window should be showing on the current workspace, while
|
||||||
|
* taking whether it can be immediately be shown. Whether it can be shown or
|
||||||
|
* not depends on what windowing system it was created from.
|
||||||
|
*
|
||||||
|
* Returns: %TRUE if the window should and can be shown.
|
||||||
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
meta_window_should_be_showing (MetaWindow *window)
|
meta_window_should_be_showing (MetaWindow *window)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user