mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
display: Add public getters for sync extension presence and event base
https://bugzilla.gnome.org/show_bug.cgi?id=728464
This commit is contained in:
parent
1e6b042778
commit
94cee3ef09
@ -3120,6 +3120,12 @@ meta_display_has_shape (MetaDisplay *display)
|
||||
return META_DISPLAY_HAS_SHAPE (display);
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_display_has_sync (MetaDisplay *display)
|
||||
{
|
||||
return META_DISPLAY_HAS_XSYNC (display);
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_display_get_focus_window:
|
||||
* @display: a #MetaDisplay
|
||||
@ -3148,6 +3154,12 @@ meta_display_get_shape_event_base (MetaDisplay *display)
|
||||
return display->shape_event_base;
|
||||
}
|
||||
|
||||
int
|
||||
meta_display_get_sync_event_base (MetaDisplay *display)
|
||||
{
|
||||
return display->xsync_event_base;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_display_clear_mouse_mode:
|
||||
* @display: a #MetaDisplay
|
||||
|
@ -75,6 +75,7 @@ Display *meta_display_get_xdisplay (MetaDisplay *display);
|
||||
MetaCompositor *meta_display_get_compositor (MetaDisplay *display);
|
||||
|
||||
gboolean meta_display_has_shape (MetaDisplay *display);
|
||||
gboolean meta_display_has_sync (MetaDisplay *display);
|
||||
|
||||
MetaWindow *meta_display_get_focus_window (MetaDisplay *display);
|
||||
|
||||
@ -83,6 +84,7 @@ gboolean meta_display_xwindow_is_a_no_focus_window (MetaDisplay *display,
|
||||
|
||||
int meta_display_get_damage_event_base (MetaDisplay *display);
|
||||
int meta_display_get_shape_event_base (MetaDisplay *display);
|
||||
int meta_display_get_sync_event_base (MetaDisplay *display);
|
||||
|
||||
gboolean meta_display_xserver_time_is_before (MetaDisplay *display,
|
||||
guint32 time1,
|
||||
|
Loading…
Reference in New Issue
Block a user