diff --git a/src/effects/backgroundcontrast/contrast.cpp b/src/effects/backgroundcontrast/contrast.cpp index ca6c00f10a..e1bfc21957 100644 --- a/src/effects/backgroundcontrast/contrast.cpp +++ b/src/effects/backgroundcontrast/contrast.cpp @@ -10,6 +10,7 @@ #include "contrastshader.h" // KConfigSkeleton +#include "utils/xcbutils.h" #include "wayland/contrast_interface.h" #include "wayland/display.h" #include "wayland/surface_interface.h" @@ -113,7 +114,7 @@ void ContrastEffect::updateContrastRegion(EffectWindow *w) int y = cardinals[i++]; int w = cardinals[i++]; int h = cardinals[i++]; - region += QRect(x, y, w, h); + region += Xcb::fromXNative(QRect(x, y, w, h)).toRect(); } for (unsigned int j = 0; j < 16; ++j) { diff --git a/src/effects/blur/blur.cpp b/src/effects/blur/blur.cpp index 600a145e43..89c210a1fe 100644 --- a/src/effects/blur/blur.cpp +++ b/src/effects/blur/blur.cpp @@ -11,6 +11,7 @@ // KConfigSkeleton #include "blurconfig.h" +#include "utils/xcbutils.h" #include "wayland/blur_interface.h" #include "wayland/display.h" #include "wayland/surface_interface.h" @@ -294,7 +295,7 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) int y = cardinals[i++]; int w = cardinals[i++]; int h = cardinals[i++]; - region += QRect(x, y, w, h); + region += Xcb::fromXNative(QRect(x, y, w, h)).toRect(); } } valid = !value.isNull();