mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +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 &&
|
else if (atom == clutter_backend_x11->atom_NET_WM_PING &&
|
||||||
xevent->xany.window == stage_x11->xwin)
|
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;
|
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,
|
XSendEvent (xdisplay, xclient.window,
|
||||||
False,
|
False,
|
||||||
SubstructureRedirectMask | SubstructureNotifyMask,
|
SubstructureRedirectMask | SubstructureNotifyMask,
|
||||||
|
Loading…
Reference in New Issue
Block a user