awesome/spec
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
gears Add gears.protected_call 2016-02-28 12:07:02 +01:00
menubar menubar.icon_theme: Don't require("awful") 2016-02-21 16:55:06 +01:00
wibox Merge pull request #709 from psychon/implement-set-children-sanely 2016-03-03 02:06:58 -05:00
preload.lua Add the right vim modeline to all lua files 2015-12-12 17:42:33 +01:00