Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Xwayland popup not showing #287

Open
ZhongYic00 opened this issue Jun 5, 2024 · 0 comments
Open

[Bug]: Xwayland popup not showing #287

ZhongYic00 opened this issue Jun 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ZhongYic00
Copy link
Contributor

SUMMARY | 问题概要

Xwayland popup不显示,contentItem尺寸为0x0

LAUNCH-WAY | 启动方式

unknown

BACKEND | 启动后端

X11

STEPS TO REPRODUCE | 复现步骤

  1. run treeland
  2. DISPLAY=:1 gtk-demo
  3. right click to open Xwayland popup

OBSERVED RESULT | 观察到的结果

popup未显示, 移动鼠标hover在menu上使其画面更新(hover项高亮)后popup出现

EXPECTED RESULT | 期望的结果

popup 立即出现

ADDITIONAL INFORMATION | 额外补充

reason:
xwayland popup's contentItem is 0x0, no entering this code path on initial surface commit

            if (d->resizeMode == WSurfaceItem::SizeFromSurface)
                d->doResize(d->resizeMode);

possible way to fix:
as in vioken/waylib#308 (comment)

if (d->beforeRequestResizeSurfaceStateSeq <= d->surface->handle()->handle()->current.seq) {
        if (d->beforeRequestResizeSurfaceStateSeq != 0) {
            Q_ASSERT(d->beforeRequestResizeSurfaceStateSeq == d->surface->handle()->handle()->current.seq);
            d->beforeRequestResizeSurfaceStateSeq = 0;
        }
@ZhongYic00 ZhongYic00 added the bug Something isn't working label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant