mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
swaybar: fix tray icon hotspot width to prevent overlapping
We decrease x with padded_source_size, so we should also set hostspot according to it. output->height may be bigger than padded_source_size and thus may make it overlap with neighbors.
This commit is contained in:
parent
04092c7f54
commit
306d36315d
1 changed files with 1 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ uint32_t render_sni(cairo_t *cairo, struct swaybar_output *output, double *x,
|
|||
struct swaybar_hotspot *hotspot = calloc(1, sizeof(struct swaybar_hotspot));
|
||||
hotspot->x = *x;
|
||||
hotspot->y = 0;
|
||||
hotspot->width = output->height;
|
||||
hotspot->width = padded_surface_size;
|
||||
hotspot->height = output->height;
|
||||
hotspot->callback = icon_hotspot_callback;
|
||||
hotspot->destroy = free;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue