awesome/lib/awful
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
..
client Make awful.client.focus.history.list public (#842) 2016-04-26 10:02:23 +02:00
hotkeys_popup chore(awful: hotkeys: vim): rename key groups 2016-02-12 01:07:04 +01:00
layout doc: fix usage of "mouse.move" as a string (#871) 2016-05-03 12:06:50 +02:00
mouse Merge pull request #873 from Elv13/geometry_overhaul_p3.01 2016-05-05 16:23:11 -04:00
widget widget.button: Release the button when the mouse leave 2016-05-10 16:06:46 -04:00
autofocus.lua awful.autofocus: Skip invalid screens 2016-05-08 14:52:31 +02:00
button.lua Fix luacheck warnings in half of awful 2016-02-11 21:55:32 +01:00
client.lua c.to_selected_tags(): Handle screenless clients 2016-05-01 10:09:26 +02:00
completion.lua Fix luacheck warnings in half of awful 2016-02-11 21:55:32 +01:00
dbus.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
ewmh.lua doc: Move request:: handler to their own documentation section 2016-04-30 04:27:34 -04:00
init.lua Make awful.rules mandatory 2016-04-18 23:55:52 -04:00
key.lua awful.key: Add a function to execute keybindings 2016-04-11 23:46:10 -04:00
keygrabber.lua Fix luacheck warnings in half of awful 2016-02-11 21:55:32 +01:00
menu.lua awful.tag: Move functions to awful.client and screen 2016-04-11 23:54:28 -04:00
placement.lua placement: Fix an semi-infinite loop when attaching to geometries 2016-05-04 23:47:44 -04:00
prompt.lua minor: doc / formatting 2016-04-04 20:30:44 +02:00
remote.lua Fix luacheck warnings in half of awful 2016-02-11 21:55:32 +01:00
rules.lua fix(awful: rules): floating property 2016-04-25 15:43:14 +02:00
screen.lua Fix awful.screen.getbycoord() for top-left corner of a screen 2016-05-15 14:40:00 +02:00
spawn.lua doc: fixes for spawn.with_line_callback 2016-04-04 20:30:48 +02:00
startup_notification.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
tag.lua Emit more signals when removing a screen's tags 2016-05-08 15:01:05 +02:00
titlebar.lua awful.client: Deprecate .floating.get/set 2016-04-11 23:46:10 -04:00
tooltip.lua Add a property::visible signal to tooltips 2016-03-05 12:32:24 +01:00
util.lua refactor(awful: util): use lgi.Gio for is_dir 2016-04-27 18:30:41 +02:00
wibox.lua awful.wibox: Handle screen removal 2016-05-01 10:12:04 +02:00