mirror of
https://github.com/labwc/labwc.git
synced 2026-02-20 01:40:22 -05:00
Chase wlroots: wlr_scene_surface
To update the wlroots subproject use meson subprojects update wlroots
This commit is contained in:
parent
3699a2a7f6
commit
163179dda1
9 changed files with 39 additions and 22 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue