mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
wayland: hook wl_proxy_get_listener avoiding QTBUG-145022 crash
Co-authored-by: Lemmy <studio@quadbyte.net>
This commit is contained in:
parent
6705e2da77
commit
365bf16b1e
5 changed files with 54 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue