1
1
mirror of https://github.com/swaywm/sway synced 2024-09-29 16:31:21 +02:00
sway/include/swaybar
Hristo Venev 7affe5c1bd swaybar: fix i3bar relative coordinates when scaling is used
24e8ba048aef4751c6fa1d5982ee634f921e6cf6 did not take scaling into account.
The hotspot size used pixel coordinates, the absolute coordinates were logical,
and the relative coordinates were completely wrong.

This commit makes all coordinates use logical values. If
`"float_event_coords":true` is sent in the handshake message, coordinates are
sent as floating-point values.

The "scale" field is an integer containing the scale value.
2020-02-10 18:58:09 +01:00
..
tray
bar.h
config.h
i3bar.h swaybar: fix i3bar relative coordinates when scaling is used 2020-02-10 18:58:09 +01:00
input.h swaybar: fix i3bar relative coordinates when scaling is used 2020-02-10 18:58:09 +01:00
ipc.h
render.h
status_line.h swaybar: fix i3bar relative coordinates when scaling is used 2020-02-10 18:58:09 +01:00