Skip to content

Make xdgsurfaceitem and xwaylandsurfaceitem public#380

Merged
zccrs merged 1 commit intovioken:masterfrom
wineee:surfaceitem
Jun 18, 2024
Merged

Make xdgsurfaceitem and xwaylandsurfaceitem public#380
zccrs merged 1 commit intovioken:masterfrom
wineee:surfaceitem

Conversation

@wineee
Copy link
Copy Markdown
Member

@wineee wineee commented Jun 18, 2024

No description provided.

Comment thread src/server/qtquick/wxdgsurfaceitem.h Outdated
Comment thread src/server/qtquick/wxwaylandsurfaceitem.h
@wineee wineee force-pushed the surfaceitem branch 2 times, most recently from 7046a28 to 795a875 Compare June 18, 2024 09:20
Comment thread src/server/qtquick/wsurfaceitem.cpp Outdated
Comment thread src/server/qtquick/wsurfaceitem.h Outdated
QRectF getContentGeometry() const override;
QSizeF getContentSize() const override;
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
Q_SLOT void updatePosition();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this slot move to WXWaylandSurfaceItemPrivate?

// TODO: Maybe we shouldn't think about the effectiveVisible for surface/item's position
// This behovior can control by compositor using PositionMode::ManualPosition
connect(this, &WXWaylandSurfaceItem::effectiveVisibleChanged,
this, &WXWaylandSurfaceItem::updatePosition, Qt::UniqueConnection);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not Sure if UniqueConnection works for lambda

@zccrs zccrs merged commit 3f306f2 into vioken:master Jun 18, 2024
@wineee wineee deleted the surfaceitem branch June 18, 2024 09:32
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