yambar/bar
Daniel Eklöf 879d5cefb1 wayland: HiDPI: initial support for HiDPI displays
We do it differently from everybody else...

A traditional HiDPI implementation typically scales up
everything. I.e. if the user wants a 1px border, it's scaled up to
2px. The wayland server typically presents an output width/height that
has been scaled *down*.

This is all a bit backwards, but perhaps was the best choice to make
legacy applications at least work.

f00bar on the other hand, wants to give the user absolute
control. Thus, we don't scale up at all. If the user wants a 25px bar
height, that's what he gets.

This does mean however, that we need to scale *down* the surface size
since it's in logical pixels, not physical.

So we scale *down* the surface size (which then gets scaled back up by
the wayland server), and then render everything *on* that surface
without any scaling.
2019-04-15 11:08:38 +02:00
..
backend.h cmake: break out bar stuff to separate CMakeLists.txt 2019-02-07 12:06:16 +01:00
bar.c bar: need to double border size (why?) 2019-02-28 20:09:50 +01:00
bar.h bar: add margin properties to the border 2019-02-17 15:45:02 +01:00
CMakeLists.txt cmake: use find_program() to locate wayland-scanner binary 2019-02-13 21:45:31 +01:00
private.h bar: move x,y coordinates to xcb backend 2019-02-17 19:40:20 +01:00
wayland.c wayland: HiDPI: initial support for HiDPI displays 2019-04-15 11:08:38 +02:00
wayland.h wayland: mucho wip: initial sort-of-working wayland backend 2019-02-03 11:08:53 +01:00
xcb.c bar/xcb: ignore non-zero border margins 2019-02-17 19:45:26 +01:00
xcb.h bar: wip: define a 'backend' interface 2019-01-29 20:59:25 +01:00