wayland: Don't set properties on the overlay window on Wayland
When Mutter is running as a display server it won't create an overlay window. Therefore we shouldn't need to set the DND proxy on the window. This was previously causing X errors when it tried to set a property on an invalid window.
This commit is contained in:
parent
e3be2237b8
commit
206f036cef
@ -1265,9 +1265,12 @@ void shell_global_init_xdnd (ShellGlobal *global)
|
|||||||
gdk_x11_get_xatom_by_name ("XdndAware"), XA_ATOM,
|
gdk_x11_get_xatom_by_name ("XdndAware"), XA_ATOM,
|
||||||
32, PropModeReplace, (const unsigned char *)&xdnd_version, 1);
|
32, PropModeReplace, (const unsigned char *)&xdnd_version, 1);
|
||||||
|
|
||||||
XChangeProperty (global->xdisplay, output_window,
|
/* There is no overlay window when running as a display server */
|
||||||
gdk_x11_get_xatom_by_name ("XdndProxy"), XA_WINDOW,
|
if (output_window)
|
||||||
32, PropModeReplace, (const unsigned char *)&global->stage_xwindow, 1);
|
XChangeProperty (global->xdisplay, output_window,
|
||||||
|
gdk_x11_get_xatom_by_name ("XdndProxy"), XA_WINDOW,
|
||||||
|
32, PropModeReplace,
|
||||||
|
(const unsigned char *)&global->stage_xwindow, 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XdndProxy is additionally set on the proxy window as verification that the
|
* XdndProxy is additionally set on the proxy window as verification that the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user