mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
sway views: add helpers to get view and layer from wlr_surface
This commit is contained in:
parent
d8c61c9763
commit
9ea4cc13a0
8 changed files with 73 additions and 0 deletions
|
|
@ -307,6 +307,11 @@ static void handle_unmap(struct wl_listener *listener, void *data) {
|
|||
unmap(sway_layer);
|
||||
}
|
||||
|
||||
struct sway_layer_surface *layer_from_wlr_layer_surface(
|
||||
struct wlr_layer_surface *layer_surface) {
|
||||
return layer_surface->data;
|
||||
}
|
||||
|
||||
void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
|
||||
struct wlr_layer_surface *layer_surface = data;
|
||||
struct sway_server *server =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue