Prepare kwin for compiling with EGL_NO_PLATFORM_SPECIFIC_TYPES

This commit is contained in:
Vlad Zahorodnii 2020-12-10 10:54:14 +02:00
parent 9f2cb0ae1b
commit 8e060e7218
5 changed files with 9 additions and 2 deletions

View file

@ -75,7 +75,7 @@ static QByteArray readWindowProperty(xcb_window_t win, xcb_atom_t atom, xcb_atom
}
}
static void deleteWindowProperty(Window win, long int atom)
static void deleteWindowProperty(xcb_window_t win, long int atom)
{
if (win == XCB_WINDOW_NONE) {
return;

View file

@ -13,6 +13,9 @@
#include <xcb/xcb.h>
#include <X11/Xlib-xcb.h>
#include <fixx11h.h>
namespace KWin
{

View file

@ -16,6 +16,9 @@
#include <memory>
#include <X11/Xlib-xcb.h>
#include <fixx11h.h>
namespace KWin
{
class XInputIntegration;

View file

@ -36,6 +36,7 @@
// system
#include <linux/input.h>
#include <X11/Xlib-xcb.h>
#include <X11/keysym.h>
namespace KWin
{

View file

@ -368,7 +368,7 @@ void Workspace::initializeX11()
}
// TODO: better value
rootInfo->setActiveWindow(None);
rootInfo->setActiveWindow(XCB_WINDOW_NONE);
focusToNull();
if (!qApp->isSessionRestored())