diff options
authorSebastian Kügler <>2017-01-24 15:15:26 (GMT)
committerSebastian Kügler <>2017-02-06 16:07:58 (GMT)
commit57cd4d12b3c70495935675cb7df6532b98695fb1 (patch)
parent04a6483a01caaa17e476ac9e4a47725f0e1ca06f (diff)
Fix type argument for get property call
We were passing the wrong argument in there, it has to be the atom's type, not the atom property itself. This fixes detection of the laptop panel in some cases, where we can't fix it with our fallback mechanism. Patch-by: Gabriel Souza Franco <> Signed-off-by: Sebastian Kügler <>
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/xrandr/xrandroutput.cpp b/backends/xrandr/xrandroutput.cpp
index 94a0b65..cc49823 100644
--- a/backends/xrandr/xrandroutput.cpp
+++ b/backends/xrandr/xrandroutput.cpp
@@ -318,7 +318,7 @@ QByteArray XRandROutput::typeFromProperty(xcb_randr_output_t outputId)
char *connectorType;
- auto cookie = xcb_randr_get_output_property(XCB::connection(), outputId, atomType,
+ auto cookie = xcb_randr_get_output_property(XCB::connection(), outputId, atomType->atom,
XCB_ATOM_ANY, 0, 100, false, false);
XCB::ScopedPointer<xcb_randr_get_output_property_reply_t> reply(xcb_randr_get_output_property_reply(XCB::connection(), cookie, NULL));
if (!reply) {