window: Add adjust_fullscreen_monitor_rect virtual method
Add an adjust_fullscreen_monitor_rect virtual method to MetaWindowClass and call this from setup_constraint_info() if the window is fullscreen. This allows MetaWindowClass to adjust the monitor-rectangle used to size the window when going fullscreen, which will be used in further commits for a workaround related to fullscreen games under Xwayland. https://gitlab.gnome.org/GNOME/mutter/merge_requests/739
This commit is contained in:
@@ -3624,6 +3624,16 @@ meta_window_has_fullscreen_monitors (MetaWindow *window)
|
||||
return window->fullscreen_monitors.top != NULL;
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_adjust_fullscreen_monitor_rect (MetaWindow *window,
|
||||
MetaRectangle *monitor_rect)
|
||||
{
|
||||
MetaWindowClass *window_class = META_WINDOW_GET_CLASS (window);
|
||||
|
||||
if (window_class->adjust_fullscreen_monitor_rect)
|
||||
window_class->adjust_fullscreen_monitor_rect (window, monitor_rect);
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_shade (MetaWindow *window,
|
||||
guint32 timestamp)
|
||||
|
Reference in New Issue
Block a user