From f651007ebe36979f39b58c3b1529152c3803efe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 9 Jan 2015 16:28:17 +0100 Subject: [PATCH] [xwayland] Don't update xrandr in WaylandScreens Xwayland is able to update randr information based on the Wayland Outputs, so it's not needed to do so from KWin. --- screens_wayland.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/screens_wayland.cpp b/screens_wayland.cpp index 0503b6ed2b..ed5b051a47 100644 --- a/screens_wayland.cpp +++ b/screens_wayland.cpp @@ -21,6 +21,7 @@ along with this program. If not, see . #include "wayland_backend.h" #include +#include "main.h" #include "utils.h" #include "xcbutils.h" @@ -208,6 +209,10 @@ static bool addModeToOutput(xcb_randr_output_t output, xcb_randr_mode_t mode) void WaylandScreens::updateXRandr() { + if (kwinApp()->operationMode() == Application::OperationModeXwayland) { + // no need to update, will be done automagically by Xwayland + return; + } if (!Xcb::Extensions::self()->isRandrAvailable()) { qCDebug(KWIN_CORE) << "No RandR extension available, cannot sync with X"; return;