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 #367

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

Bug: Xwayland popup not showing #367

ZhongYic00 opened this issue Jun 5, 2024 · 0 comments

Comments

@ZhongYic00
Copy link
Collaborator

ZhongYic00 commented Jun 5, 2024

from linuxdeepin/treeland#287

steps to reproduce:

  • run tinywl
  • DISPLAY=:1 gtk-demo

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 #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;
        }
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

No branches or pull requests

1 participant