Skip to content

Bug: Xwayland popup not showing #367

@ZhongYic00

Description

@ZhongYic00

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions