Skip to content
Commit d7e60e19 authored by Stefan Becker's avatar Stefan Becker Committed by David Edmundson
Browse files

X11: fix kded xcb resource leak

This fixes commit 579358f5

XOpenDisplay() internally calls xcb_connect(), creating a new XCB client
connection. This means that on every KScreen configuration change event
the kded5 process creates a new connection until XCB runs into the hard
limit of 256 of clients, leading to the dreaded "Maximum number of
clients reached" error.

Re-use the display from QX11Info instead of calling XOpenDisplay().

BUG: 453280


(cherry picked from commit 0270a493)
parent 6b51cce6
Pipeline #182916 passed with stage
in 4 minutes and 32 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment