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 committed by Johan Malm
parent 32dac72734
commit f1ada7e407
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;