mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-12-16 18:03:19 +00:00
add support for layer_shell popups
This commit is contained in:
parent
0ee5512fa8
commit
d9200d5950
9
dwl.c
9
dwl.c
@ -876,7 +876,10 @@ void
|
||||
createnotify(struct wl_listener *listener, void *data)
|
||||
{
|
||||
/* This event is raised when wlr_xdg_shell receives a new xdg surface from a
|
||||
* client, either a toplevel (application window) or popup. */
|
||||
* client, either a toplevel (application window) or popup.
|
||||
* or when wlr_layer_shell receives a new popup from a layer, so if you want
|
||||
* to do something tricky you should check if the parent is wlr_xdg_shell or
|
||||
* wlr_layer_shell */
|
||||
struct wlr_xdg_surface *xdg_surface = data;
|
||||
Client *c;
|
||||
|
||||
@ -929,8 +932,8 @@ createlayersurface(struct wl_listener *listener, void *data)
|
||||
wlr_layer_surface->data = layersurface;
|
||||
m = wlr_layer_surface->output->data;
|
||||
|
||||
layersurface->scene = wlr_scene_subsurface_tree_create(
|
||||
layers[wlr_layer_surface->pending.layer],
|
||||
layersurface->scene = wlr_layer_surface->surface->data =
|
||||
wlr_scene_subsurface_tree_create(layers[wlr_layer_surface->pending.layer],
|
||||
wlr_layer_surface->surface);
|
||||
layersurface->scene->data = layersurface;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user