Skip to content

fix(x11/layer-shell-qt): fix right click crash on wayland#18

Draft
lfdevs wants to merge 1 commit into
masterfrom
dev/layer-shell-qt/fix-right-click-crash
Draft

fix(x11/layer-shell-qt): fix right click crash on wayland#18
lfdevs wants to merge 1 commit into
masterfrom
dev/layer-shell-qt/fix-right-click-crash

Conversation

@lfdevs

@lfdevs lfdevs commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Fix popup attachment with libc++

Avoid using std::any_cast to retrieve the xdg_popup role, as libc++
RTTI comparison can fail across shared modules loaded with RTLD_LOCAL.

Retrieve the popup through Qt's platform native interface instead,
preventing Plasma context menus from causing a Wayland protocol error.

Fix:

Related URLs:

Fix popup attachment with libc++

Avoid using std::any_cast to retrieve the xdg_popup role, as libc++
RTTI comparison can fail across shared modules loaded with RTLD_LOCAL.

Retrieve the popup through Qt's platform native interface instead,
preventing Plasma context menus from causing a Wayland protocol error.

Related URLs:
* https://bugs.kde.org/show_bug.cgi?id=479679
* llvm/llvm-project#36746
* freebsd/freebsd-ports#431
@lfdevs
lfdevs force-pushed the dev/layer-shell-qt/fix-right-click-crash branch from 1bec845 to fd696e9 Compare July 23, 2026 05:54
@lfdevs

lfdevs commented Jul 23, 2026

Copy link
Copy Markdown
Owner Author

@SolDev69 @FarLightZ Hi, could you try installing the patched layer-shell-qt on Termux native? I am trying to fix the issue where right-clicking causes a crash on the KDE Plasma Wayland desktop. I have tested it on my device, and the issue has been resolved on my device.

You can find the build artifacts here: https://github.com/lfdevs/termux-packages/actions/runs/29983436264?pr=18#artifacts
Specifically, look for files in the Artifacts section that start with debs, such as debs-aarch64-fd696e968cebc1969a7de9d8392648a8d6d91fb9. After downloading and extracting it, you’ll obtain layer-shell-qt_6.7.3-1_aarch64.deb.

@FarLightZ

Copy link
Copy Markdown

@SolDev69 @FarLightZ Hi, could you try installing the patched layer-shell-qt on Termux native? I am trying to fix the issue where right-clicking causes a crash on the KDE Plasma Wayland desktop. I have tested it on my device, and the issue has been resolved on my device.

You can find the build artifacts here: https://github.com/lfdevs/termux-packages/actions/runs/29983436264?pr=18#artifacts Specifically, look for files in the Artifacts section that start with debs, such as debs-aarch64-fd696e968cebc1969a7de9d8392648a8d6d91fb9. After downloading and extracting it, you’ll obtain layer-shell-qt_6.7.3-1_aarch64.deb.

WORKING BROTHA!!! IT'S WORKING YOU HACKERMAN!! I'LL GIVE U A HANDSHAKE ONCE WE'VE MET!!!!!
Screenshot_2026-07-23-20-34-13-734_com anland termux

@FarLightZ

Copy link
Copy Markdown

UPD: Fullscreen also breaks the app somehow, anywhere, youtube, settings applications etc.

YOU FIXED THE BUG WHEN EVERYTHING DIES WHEN YOU SEND AND APP-SHORTCUT TO A DESKTOP, NICEEEEEE

@FarLightZ

Copy link
Copy Markdown

UPD: I don't know if it's related to the fullscreen bug but when I open and close an aplicatiob (one cycle of opening and closing is enough) a bit later KWin crashes, it's like 10-15 seconds and bam blinking giant mouse, tested with firefox and Calligra document suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants