summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbconnection.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@nokia.com>2012-09-05 13:44:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-18 14:12:27 +0200
commitbeab941e1fc11c8fe0914c6a3207ba029eb96112 (patch)
treed8e7a2a56130edbfeef1a6790013815fe99106e5 /src/plugins/platforms/xcb/qxcbconnection.h
parent5ea896fbc63593f424a7dfbb11387599c0025c74 (diff)
X11 (xcb) support for QScreen-per-output and runtime changes
QScreen has notifiers for its properties, but they were not being emitted when one changes the resolution or arrangement of individual outputs, e.g. via xrandr. Also there should be one QScreen per "output", e.g. laptop LCD + external monitor means 2 QScreens which will be siblings, rather than just 1 QScreen to represent the whole desktop. Change-Id: Ia61bbc5e6a3506f813ab11f87c03d14cf7f4ce85 Reviewed-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h
index d97db9a74d..8feca95ecc 100644
--- a/src/plugins/platforms/xcb/qxcbconnection.h
+++ b/src/plugins/platforms/xcb/qxcbconnection.h
@@ -398,6 +398,7 @@ private:
void handleGenericEventMaemo(xcb_ge_event_t *event);
#endif
void handleClientMessageEvent(const xcb_client_message_event_t *event);
+ QXcbScreen* createScreenWithFabricatedName(int screenNumber, xcb_screen_t* xcbScreen);
bool m_xi2Enabled;
int m_xi2Minor;
@@ -442,6 +443,7 @@ private:
QList<QXcbScreen *> m_screens;
int m_primaryScreen;
+ int m_primaryOutput;
xcb_atom_t m_allAtoms[QXcbAtom::NAtoms];