Protect readProperty and deleteProperty in case of no X11
ClosedPublic

Authored by graesslin on Sep 2 2017, 8:07 AM.

Details

Summary

Read(Window)Property and deleteProperty should only operate if there is
an X11 connection available.

In addition the methods are changed to the x11 wrappers provided on the
KWin::Application as that one can support restarting XWayland in opposite
to the global methods.

Test Plan

Compiles

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin created this revision.Sep 2 2017, 8:07 AM
Restricted Application added a project: KWin. · View Herald TranscriptSep 2 2017, 8:07 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
broulik accepted this revision.Sep 6 2017, 10:02 AM
This revision is now accepted and ready to land.Sep 6 2017, 10:02 AM
This revision was automatically updated to reflect the committed changes.