src/ssd: Use LAB_SSD_PART_CORNER_x for rounded corner backgrounds

This matches the behavior of the surrounding borders and will usually
cause resizing instead of triggering the button itself. This effect
is only really visible when using a border width settings of > 1.

Fixes #379
This commit is contained in:
Consolatis 2022-06-08 14:37:30 +02:00
parent 9c37101ec0
commit c6dc7e31ee
6 changed files with 74 additions and 65 deletions

View file

@ -294,6 +294,11 @@ desktop_node_and_view_at(struct server *server, double lx, double ly,
if (desc->type == LAB_NODE_DESC_XDG_POPUP) {
goto has_view_data;
}
if (desc->type == LAB_NODE_DESC_SSD_BUTTON) {
/* Always return the top scene node for SSD buttons */
*scene_node = node;
goto has_view_data;
}
if (desc->type == LAB_NODE_DESC_LAYER_SURFACE) {
/* FIXME: we shouldn't have to set *view_area */
*view_area = LAB_SSD_CLIENT;