mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
stage/x11: Get root window from the X11 backend
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2014>
This commit is contained in:
parent
c41d2a17da
commit
cf00ee9724
@ -601,10 +601,14 @@ handle_wm_protocols_event (MetaStageX11 *stage_x11,
|
||||
else if (atom == clutter_backend_x11->atom_NET_WM_PING &&
|
||||
xevent->xany.window == stage_x11->xwin)
|
||||
{
|
||||
MetaBackend *backend =
|
||||
meta_stage_impl_get_backend (META_STAGE_IMPL (stage_x11));
|
||||
MetaBackendX11 *backend_x11 = META_BACKEND_X11 (backend);
|
||||
Display *xdisplay = meta_backend_x11_get_xdisplay (backend_x11);
|
||||
Window root_xwindow = meta_backend_x11_get_root_xwindow (backend_x11);
|
||||
XClientMessageEvent xclient = xevent->xclient;
|
||||
Display *xdisplay = xdisplay_from_stage (stage_x11);
|
||||
|
||||
xclient.window = clutter_backend_x11->xwin_root;
|
||||
xclient.window = root_xwindow;
|
||||
XSendEvent (xdisplay, xclient.window,
|
||||
False,
|
||||
SubstructureRedirectMask | SubstructureNotifyMask,
|
||||
|
Loading…
Reference in New Issue
Block a user