mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 19:26:32 +00:00
use xdg_shell helper
for xwayland continue using wlr_scene_subsurface_create()
This commit is contained in:
parent
f1c92b05fb
commit
1b22ef1616
1 changed files with 3 additions and 2 deletions
5
dwl.c
5
dwl.c
|
@ -1319,8 +1319,9 @@ mapnotify(struct wl_listener *listener, void *data)
|
||||||
|
|
||||||
/* Create scene tree for this client and its border */
|
/* Create scene tree for this client and its border */
|
||||||
c->scene = &wlr_scene_tree_create(layers[LyrTile])->node;
|
c->scene = &wlr_scene_tree_create(layers[LyrTile])->node;
|
||||||
c->scene_surface = client_surface(c)->data =
|
c->scene_surface = client_surface(c)->data = c->type == XDGShell
|
||||||
wlr_scene_subsurface_tree_create(c->scene, client_surface(c));
|
? wlr_scene_xdg_surface_create(c->scene, c->surface.xdg)
|
||||||
|
: wlr_scene_subsurface_tree_create(c->scene, client_surface(c));
|
||||||
c->scene_surface->data = c;
|
c->scene_surface->data = c;
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
c->border[i] = wlr_scene_rect_create(c->scene, 0, 0, bordercolor);
|
c->border[i] = wlr_scene_rect_create(c->scene, 0, 0, bordercolor);
|
||||||
|
|
Loading…
Reference in a new issue