mirror of
https://github.com/labwc/labwc.git
synced 2026-02-22 01:40:25 -05:00
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:
parent
32dac72734
commit
f1ada7e407
6 changed files with 74 additions and 65 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue