awesome/lib
Uli Schlachter 13bce88fa0 Fix awful.screen.getbycoord() for top-left corner of a screen
The problem was that get_square_distance() made the screen one pixel larger to
the bottom/right than it really was. Thus, the (x+0,y+0)-pixel of a screen that
was below or to the right of some other screen had distance zero to both of
these screens.

This commit fixes the screen size computation and adds a small unit test for
getbycoord() and get_square_distance().

Reported by Elv13 here:
https://github.com/awesomeWM/awesome/pull/878#issuecomment-219272864

Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-05-15 14:40:00 +02:00
..
awful Fix awful.screen.getbycoord() for top-left corner of a screen 2016-05-15 14:40:00 +02:00
beautiful Minor doc fixes 2016-03-06 14:46:13 +01:00
gears Merge branch 'root-size' of https://github.com/psychon/awesome 2016-04-15 19:35:12 +02:00
menubar menubar.utils.parse_dir: Ask Gio for file type 2016-04-30 19:23:46 +02:00
naughty naughty: Delete a screen's notification on removal 2016-05-08 15:01:06 +02:00
wibox Merge branch 'doc_shared' of https://github.com/Elv13/awesome-1 2016-05-09 18:42:49 +02:00