summaryrefslogtreecommitdiff
path: root/debian/patches/0245-fix-randr-changes-detecting.diff
blob: 5eaf5a9e45d8d14637d541dde37d13a4c49dedbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
qt-bugs@ issue : none yet
Trolltech task ID : none yet
bugs.kde.org number : ?
applied: no
author: Lubos Lunak <l.lunak@kde.org>

Fix QDesktopWidget not detecting some changes in multiscreen setups
(e.g. two screens 1280x1024, one of them switching to smaller size).

--- a/src/gui/kernel/qapplication_x11.cpp
+++ b/src/gui/kernel/qapplication_x11.cpp
@@ -2994,11 +2994,11 @@ int QApplication::x11ProcessEvent(XEvent
         QSize oldSize(w->size());
         w->data->crect.setWidth(DisplayWidth(X11->display, scr));
         w->data->crect.setHeight(DisplayHeight(X11->display, scr));
-        if (w->size() != oldSize) {
+//        if (w->size() != oldSize) {
             QResizeEvent e(w->size(), oldSize);
             QApplication::sendEvent(w, &e);
             emit desktop()->resized(scr);
-        }
+//        }
     }
 #endif // QT_NO_XRANDR