x11: Make some unnecessarily public API private again

There's a few functions that GNOME Shell shouldn't ever need,
stop exporting them as public API.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2779>
This commit is contained in:
Carlos Garnacho 2023-02-23 17:16:52 +01:00
parent 22c6374374
commit e0634a4060
2 changed files with 11 additions and 16 deletions

View File

@ -36,32 +36,16 @@ typedef void (* MetaX11DisplayEventFunc) (MetaX11Display *x11_display,
META_EXPORT
G_DECLARE_FINAL_TYPE (MetaX11Display, meta_x11_display, META, X11_DISPLAY, GObject)
META_EXPORT
int meta_x11_display_get_screen_number (MetaX11Display *x11_display);
META_EXPORT
Display *meta_x11_display_get_xdisplay (MetaX11Display *x11_display);
META_EXPORT
Window meta_x11_display_get_xroot (MetaX11Display *x11_display);
META_EXPORT
int meta_x11_display_get_damage_event_base (MetaX11Display *x11_display);
META_EXPORT
void meta_x11_display_set_cm_selection (MetaX11Display *x11_display);
META_EXPORT
gboolean meta_x11_display_xwindow_is_a_no_focus_window (MetaX11Display *x11_display,
Window xwindow);
META_EXPORT
void meta_x11_display_set_stage_input_region (MetaX11Display *x11_display,
XserverRegion region);
META_EXPORT
void meta_x11_display_clear_stage_input_region (MetaX11Display *x11_display);
META_EXPORT
unsigned int meta_x11_display_add_event_func (MetaX11Display *x11_display,
MetaX11DisplayEventFunc event_func,

View File

@ -287,4 +287,15 @@ MetaDisplay * meta_x11_display_get_display (MetaX11Display *x11_display);
void meta_x11_display_run_event_funcs (MetaX11Display *x11_display,
XEvent *xevent);
int meta_x11_display_get_screen_number (MetaX11Display *x11_display);
int meta_x11_display_get_damage_event_base (MetaX11Display *x11_display);
void meta_x11_display_set_cm_selection (MetaX11Display *x11_display);
gboolean meta_x11_display_xwindow_is_a_no_focus_window (MetaX11Display *x11_display,
Window xwindow);
void meta_x11_display_clear_stage_input_region (MetaX11Display *x11_display);
#endif /* META_X11_DISPLAY_PRIVATE_H */