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;