QHotkey icon indicating copy to clipboard operation
QHotkey copied to clipboard

X11 Qt6: fix segmentation fault when running under Wayland

Open dbermond opened this issue 1 year ago • 0 comments

Under Wayland, QGuiApplication::nativeInterface() seems to return a null pointer. At least, this happens in Plasma 6.0.3 with Qt 6.6.2. A segmentation fault occurs when dereferencing the null pointer for obtaining the X11 display.

Checking for a valid pointer in x11Interface variable before acquiring the X11 display is safer and avoids this problem.

dbermond avatar Mar 30 '24 14:03 dbermond