]> git.mdlowis.com Git - proto/labwc.git/commit
desktop.c: don't print errors when cursor is on resize-indicator
authortokyo4j <hrak1529@gmail.com>
Sun, 7 Sep 2025 13:10:27 +0000 (22:10 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 7 Sep 2025 21:00:01 +0000 (22:00 +0100)
commit3923b27384046167d02c96ee96d24f3330058acf
tree08b8bdf1e16cd00accc2a20df91c2e77490d8c43
parentb02d7d0e18659b992759e8658b6d4d4393f5da6c
desktop.c: don't print errors when cursor is on resize-indicator

In f347a81, I thought there are only window contents and SSD under
`view->scene_tree` and forgot about the resize-indicator.

I also refactored the logic around it:
- Remove `ret.node->type == WLR_SCENE_NODE_BUFFER` check since it's
  already done by `lab_wlr_surface_from_node()`
- Eliminate duplicated call to `lab_wlr_surface_from_node()`
src/desktop.c