mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-02 06:46:29 -04:00
Merge branch 'DreamMaoMao:main' into main
This commit is contained in:
commit
42b0353e02
1 changed files with 7 additions and 4 deletions
|
|
@ -106,10 +106,6 @@ void xytonode(double x, double y, struct wlr_surface **psurface, Client **pc,
|
|||
surface = wlr_scene_surface_try_from_buffer(
|
||||
wlr_scene_buffer_from_node(node))
|
||||
->surface;
|
||||
else if (node->type == WLR_SCENE_NODE_RECT) {
|
||||
surface = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
/* start from the topmost layer,
|
||||
find a surface that can be focused by pointer,
|
||||
|
|
@ -125,6 +121,13 @@ void xytonode(double x, double y, struct wlr_surface **psurface, Client **pc,
|
|||
l = pnode->data;
|
||||
}
|
||||
}
|
||||
|
||||
if (node->type == WLR_SCENE_NODE_RECT) {
|
||||
if (c) {
|
||||
surface = client_surface(c);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (psurface)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue