Don't go through QX11Info for things we can easily provide by ourselve

Review Request #122683 - Created Feb. 23, 2015 and submitted

Information
Martin Flöser
kwin
master
5f3c300...
Reviewers
kwin
No need to go through QX11Info for information we already cache.

Replace QX11Info::appScreen() with KWin::Application::x11ScreenNumber()

No need to go through QX11Info for information we have.

Drop not needed includes of QX11Info


Provide x11RootWindow as a property on the KWin::Application

KWin::rootWindow() uses the property to resolve the value instead of
using QX11Info. In practice this doesn't change anything at the moment,
but allows kwin_wayland to provide a root window without depending on
QX11Info.

Provide x11Connection as a property on the KWin::Application

KWin::connection() uses the property to resolve the value instead of
using QX11Info. In practice this doesn't change anything at the moment,
but allows kwin_wayland to provide an xcb connection without depending
on QX11Info.

As we cannot make xcb_connection_t* available as a metatype, the
property's type is set to void*.

Use property for x11AppScreen in KWin::Application

Already provided by KWin::Application so let's use it instead of
QX11Info::appScreen.

  
Martin Flöser
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 8c15da99ae06f34a1f022e00f3088762107d52cc by Martin Gräßlin to branch master.
Loading...