Support bypass compositor hints

Add support for _NET_WM_BYPASS_COMPOSITOR and _NET_WM_DONT_BYPASS_COMPOSITOR
as proposed here: https://mail.gnome.org/archives/wm-spec-list/2012-February/msg00010.html

https://bugzilla.gnome.org/show_bug.cgi?id=683020
This commit is contained in:
Adel Gadllah
2012-08-30 08:40:18 +02:00
parent 6f3ae06362
commit 3876a1a192
6 changed files with 94 additions and 2 deletions

View File

@ -3640,6 +3640,28 @@ meta_window_is_on_primary_monitor (MetaWindow *window)
return window->monitor->is_primary;
}
/**
* meta_window_requested_bypass_compositor:
*
* Return value: %TRUE if the window requested to bypass the compositor
*/
gboolean
meta_window_requested_bypass_compositor (MetaWindow *window)
{
return window->bypass_compositor;
}
/**
* meta_window_requested_dont_bypass_compositor:
*
* Return value: %TRUE if the window requested to opt out of unredirecting
*/
gboolean
meta_window_requested_dont_bypass_compositor (MetaWindow *window)
{
return window->dont_bypass_compositor;
}
void
meta_window_tile (MetaWindow *window)
{