mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
backend/x11: Add API to get the root window
Will later be used from here instead of via the clutter backend. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2014>
This commit is contained in:
parent
6f80c1e7b5
commit
dfbe97a8e5
@ -63,6 +63,7 @@ struct _MetaBackendX11Private
|
|||||||
Display *xdisplay;
|
Display *xdisplay;
|
||||||
xcb_connection_t *xcb;
|
xcb_connection_t *xcb;
|
||||||
GSource *source;
|
GSource *source;
|
||||||
|
Window root_window;
|
||||||
|
|
||||||
int xsync_event_base;
|
int xsync_event_base;
|
||||||
int xsync_error_base;
|
int xsync_error_base;
|
||||||
@ -868,6 +869,7 @@ meta_backend_x11_initable_init (GInitable *initable,
|
|||||||
|
|
||||||
priv->xdisplay = xdisplay;
|
priv->xdisplay = xdisplay;
|
||||||
priv->xcb = XGetXCBConnection (priv->xdisplay);
|
priv->xcb = XGetXCBConnection (priv->xdisplay);
|
||||||
|
priv->root_window = DefaultRootWindow (xdisplay);
|
||||||
|
|
||||||
init_xkb_state (x11);
|
init_xkb_state (x11);
|
||||||
|
|
||||||
@ -953,6 +955,15 @@ meta_backend_x11_get_xdisplay (MetaBackendX11 *x11)
|
|||||||
return priv->xdisplay;
|
return priv->xdisplay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Window
|
||||||
|
meta_backend_x11_get_root_xwindow (MetaBackendX11 *backend_x11)
|
||||||
|
{
|
||||||
|
MetaBackendX11Private *priv =
|
||||||
|
meta_backend_x11_get_instance_private (backend_x11);
|
||||||
|
|
||||||
|
return priv->root_window;
|
||||||
|
}
|
||||||
|
|
||||||
Window
|
Window
|
||||||
meta_backend_x11_get_xwindow (MetaBackendX11 *x11)
|
meta_backend_x11_get_xwindow (MetaBackendX11 *x11)
|
||||||
{
|
{
|
||||||
|
@ -49,6 +49,8 @@ struct _MetaBackendX11Class
|
|||||||
|
|
||||||
Display * meta_backend_x11_get_xdisplay (MetaBackendX11 *backend);
|
Display * meta_backend_x11_get_xdisplay (MetaBackendX11 *backend);
|
||||||
|
|
||||||
|
Window meta_backend_x11_get_root_xwindow (MetaBackendX11 *backend_x11);
|
||||||
|
|
||||||
Window meta_backend_x11_get_xwindow (MetaBackendX11 *backend);
|
Window meta_backend_x11_get_xwindow (MetaBackendX11 *backend);
|
||||||
|
|
||||||
void meta_backend_x11_handle_event (MetaBackendX11 *x11,
|
void meta_backend_x11_handle_event (MetaBackendX11 *x11,
|
||||||
|
Loading…
Reference in New Issue
Block a user