Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

tinywl: use wlr_scene #3250

Open
ifreund wants to merge 3 commits into
swaywm:masterfrom
ifreund:tinywl-scene
Open

tinywl: use wlr_scene #3250
ifreund wants to merge 3 commits into
swaywm:masterfrom
ifreund:tinywl-scene

Conversation

@ifreund

@ifreund ifreund commented Oct 12, 2021

Copy link
Copy Markdown
Member

Closes #3177

@ifreund ifreund force-pushed the tinywl-scene branch 3 times, most recently from f0d682a to c260f28 Compare October 14, 2021 20:55
@ifreund ifreund marked this pull request as ready for review October 23, 2021 12:52
@ifreund

ifreund commented Oct 23, 2021

Copy link
Copy Markdown
Member Author

Xdg popups are now supported in this PR, so the feature set should be on-par with tinywl on master.

emersion and others added 3 commits October 27, 2021 15:39
This allows compositors to easily add an xdg_popup to the
scene-graph while retaining the ability to unconstraint the popup
and decide its final position.

Compositors can handle new popups with the wlr_xdg_shell.new_surface
event, get the parent scene-graph node via wlr_xdg_popup.parent.data,
create a new scene-graph node via wlr_scene_xdg_popup_tree_create,
and unconstraint the popup if they want to.
Comment thread tinywl/tinywl.c
wlr_scene_xdg_popup_create(view->scene_node, xdg_surface->popup);
return;
}
assert(xdg_surface-> role == WLR_XDG_SURFACE_ROLE_TOPLEVEL);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Style: stray whitespace here

@emersion

emersion commented Nov 1, 2021

Copy link
Copy Markdown
Member

wlroots has migrated to gitlab.freedesktop.org. This pull request has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3250

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

tinywl: switch to the scene-graph API

2 participants