compositor: Select for input on the output window the right display
This commit is contained in:
parent
fdd43fc2d9
commit
d590626017
@ -80,6 +80,8 @@
|
|||||||
#include <X11/extensions/shape.h>
|
#include <X11/extensions/shape.h>
|
||||||
#include <X11/extensions/Xcomposite.h>
|
#include <X11/extensions/Xcomposite.h>
|
||||||
|
|
||||||
|
#include "backends/x11/meta-backend-x11.h"
|
||||||
|
|
||||||
#include "wayland/meta-wayland-private.h"
|
#include "wayland/meta-wayland-private.h"
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -148,16 +150,15 @@ process_damage (MetaCompositor *compositor,
|
|||||||
static Window
|
static Window
|
||||||
get_output_window (MetaCompositor *compositor)
|
get_output_window (MetaCompositor *compositor)
|
||||||
{
|
{
|
||||||
MetaDisplay *display = compositor->display;
|
MetaBackendX11 *backend = META_BACKEND_X11 (meta_get_backend ());
|
||||||
Display *xdisplay = display->xdisplay;
|
Display *xdisplay = meta_backend_x11_get_xdisplay (backend);
|
||||||
Window output, xroot;
|
Window output;
|
||||||
XWindowAttributes attr;
|
XWindowAttributes attr;
|
||||||
long event_mask;
|
long event_mask;
|
||||||
unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 };
|
unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 };
|
||||||
XIEventMask mask = { XIAllMasterDevices, sizeof (mask_bits), mask_bits };
|
XIEventMask mask = { XIAllMasterDevices, sizeof (mask_bits), mask_bits };
|
||||||
|
|
||||||
xroot = display->screen->xroot;
|
output = XCompositeGetOverlayWindow (xdisplay, DefaultRootWindow (xdisplay));
|
||||||
output = XCompositeGetOverlayWindow (xdisplay, xroot);
|
|
||||||
|
|
||||||
meta_core_add_old_event_mask (xdisplay, output, &mask);
|
meta_core_add_old_event_mask (xdisplay, output, &mask);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user