Merge vk-gkl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3
[platform/upstream/VK-GL-CTS.git] / framework / platform / lnx / X11 / tcuLnxX11.cpp
index 7f2fe59..dfe09d0 100644 (file)
@@ -202,6 +202,15 @@ XlibWindow::XlibWindow (XlibDisplay& display, int width, int height, ::Visual* v
                                                         depth, InputOutput, visual, mask, &swa);
        TCU_CHECK(m_window);
 
+       /* Prevent the window from stealing input, since our windows are
+        * non-interactive.
+        */
+       XWMHints *hints = XAllocWMHints();
+       hints->flags |= InputHint;
+       hints->input = False;
+       XSetWMHints(dpy, m_window, hints);
+       XFree(hints);
+
        Atom deleteAtom = m_display.getDeleteAtom();
        XSetWMProtocols(dpy, m_window, &deleteAtom, 1);
        XSync(dpy,false);