summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl_qws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/egl/qegl_qws.cpp')
-rw-r--r--src/gui/egl/qegl_qws.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/egl/qegl_qws.cpp b/src/gui/egl/qegl_qws.cpp
index 590b666..df1179a 100644
--- a/src/gui/egl/qegl_qws.cpp
+++ b/src/gui/egl/qegl_qws.cpp
@@ -83,7 +83,8 @@ static QScreen *screenForDevice(QPaintDevice *device)
screenNumber = 0;
screen = screen->subScreens()[screenNumber];
}
- while (screen->classId() == QScreen::ProxyClass) {
+ while (screen->classId() == QScreen::ProxyClass ||
+ screen->classId() == QScreen::TransformedClass) {
screen = static_cast<QProxyScreen *>(screen)->screen();
}
return screen;