Chase wlroots: wlr_scene_surface

To update the wlroots subproject use
meson subprojects update wlroots
This commit is contained in:
Consolatis 2022-05-26 00:39:04 +02:00 committed by Johan Malm
parent 3699a2a7f6
commit 163179dda1
9 changed files with 39 additions and 22 deletions

View file

@ -5,6 +5,7 @@
#include "layers.h"
#include "node.h"
#include "ssd.h"
#include "common/scene-helpers.h"
static void
move_to_front(struct view *view)
@ -270,10 +271,9 @@ desktop_node_and_view_at(struct server *server, double lx, double ly,
*view_area = LAB_SSD_ROOT;
return NULL;
}
if (node->type == WLR_SCENE_NODE_SURFACE) {
struct wlr_surface *surface =
wlr_scene_surface_from_node(node)->surface;
if (wlr_surface_is_layer_surface(surface)) {
if (node->type == WLR_SCENE_NODE_BUFFER) {
struct wlr_surface *surface = lab_wlr_surface_from_node(node);
if (surface && wlr_surface_is_layer_surface(surface)) {
*view_area = LAB_SSD_LAYER_SURFACE;
return NULL;
}