wayland: hook wl_proxy_get_listener avoiding QTBUG-145022 crash

Co-authored-by: Lemmy <studio@quadbyte.net>
This commit is contained in:
outfoxxed 2026-03-16 21:19:20 -07:00
parent 6705e2da77
commit 365bf16b1e
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
5 changed files with 54 additions and 1 deletions

View file

@ -73,6 +73,7 @@ endfunction()
# -----
qt_add_library(quickshell-wayland STATIC
wl_proxy_safe_deref.cpp
platformmenu.cpp
popupanchor.cpp
xdgshell.cpp
@ -80,6 +81,13 @@ qt_add_library(quickshell-wayland STATIC
output_tracking.cpp
)
# required for wl_proxy_safe_deref
target_link_libraries(quickshell-wayland PRIVATE ${CMAKE_DL_LIBS})
target_link_options(quickshell PRIVATE
"LINKER:--export-dynamic-symbol=wl_proxy_get_listener"
"LINKER:--require-defined=wl_proxy_get_listener"
)
# required to make sure the constructor is linked
add_library(quickshell-wayland-init OBJECT init.cpp)