We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 541a3e1 commit 46e0518Copy full SHA for 46e0518
src/ui/classic/classicui.cpp
@@ -278,10 +278,12 @@ void ClassicUI::update(UserInterfaceComponent component,
278
// unfortunately, hopefully main display is X wayland.
279
// The position will be wrong anyway.
280
#ifdef ENABLE_X11
281
- auto mainX11Display = xcb()->call<IXCBModule::mainDisplay>();
282
- if (!mainX11Display.empty()) {
283
- if (auto *uiPtr = findValue(uis_, "x11:" + mainX11Display)) {
284
- ui = uiPtr->get();
+ if (auto *xcbAddon = xcb()) {
+ auto mainX11Display = xcbAddon->call<IXCBModule::mainDisplay>();
+ if (!mainX11Display.empty()) {
+ if (auto *uiPtr = findValue(uis_, "x11:" + mainX11Display)) {
285
+ ui = uiPtr->get();
286
+ }
287
}
288
289
#endif
0 commit comments