summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kügler <sebas@kde.org>2017-01-24 15:15:26 (GMT)
committerSebastian Kügler <sebas@kde.org>2017-02-06 16:07:58 (GMT)
commit57cd4d12b3c70495935675cb7df6532b98695fb1 (patch)
tree3a79e01e5f4c3e0d601cdfdbafe0dfbf0f4b3de2
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 <gabrielfrancosouza@gmail.com> Signed-off-by: Sebastian Kügler <sebas@kde.org>
-rw-r--r--backends/xrandr/xrandroutput.cpp2
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) {