awesome/tests
Uli Schlachter e659b80f36 Refuse attempts to resize clients to invalid size
X11 does not allow to resize a window to size 0x0. Also, there are some
possibilities of integer overflows in our case. We tried to handle this
already, but there was a loop-hole: If the too-small-value is only
produced after applying size hints, then this was not caught.

Fix this by applying size hints before checking if the resulting size is
valid. However, this means some check needs to be duplicated to handle
the possibility of integer underflows while applying size hints.

Helps-with: https://github.com/awesomeWM/awesome/issues/1340
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-01-08 15:35:56 +01:00
..
examples doc: Partially revert the indentation changes 2017-01-03 00:12:28 -05:00
_client.lua test client: Add support for setting some size hints 2017-01-08 15:35:56 +01:00
_multi_screen.lua Add missing modelines to tests/*.lua 2016-12-31 14:05:51 +01:00
_runner.lua tests/_runner.lua: Use less waiting 2017-01-02 19:34:41 +01:00
_wibox_helper.lua textclock: Move to wibox.widget 2016-05-30 17:51:19 -04:00
run.sh Fix tests/run.sh 2017-01-02 19:35:13 +01:00
test-awesomerc.lua Merge pull request #1345 from psychon/test-runner-speed2 2017-01-03 02:13:44 +01:00
test-awful-client.lua Merge pull request #1345 from psychon/test-runner-speed2 2017-01-03 02:13:44 +01:00
test-awful-layout.lua Add missing modelines to tests/*.lua 2016-12-31 14:05:51 +01:00
test-awful-rules.lua Add missing modelines to tests/*.lua 2016-12-31 14:05:51 +01:00
test-awful-screen.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-awful-tag.lua Add missing modelines to tests/*.lua 2016-12-31 14:05:51 +01:00
test-awful-widget-button.lua tests: Add calls to awesome.sync() where needed 2017-01-02 19:34:41 +01:00
test-awful-widget-watch.lua Make tests more reliable on "early errors" 2016-03-06 10:20:45 +01:00
test-benchmark.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-client-swap.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-current-desktop.lua Fix the test that the previous commit added 2016-06-04 17:05:42 +02:00
test-dbus-error.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-drawable-bgimage.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-focus.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-geometry.lua test-geometry: Wait for c:kill() to be done 2017-01-02 19:34:41 +01:00
test-leak-client.lua test-leak-client.lua: Wait for c:kill() to be done 2017-01-02 19:34:41 +01:00
test-leaks.lua Fix memory leak in the default config on screen removal 2016-09-30 22:46:51 +02:00
test-maximize.lua change test value for client.border_width 2016-07-27 13:43:28 +02:00
test-miss-handlers.lua Add missing modelines to tests/*.lua 2016-12-31 14:05:51 +01:00
test-resize.lua Refuse attempts to resize clients to invalid size 2017-01-08 15:35:56 +01:00
test-screen-changes.lua Add a test for screen :swap() 2016-10-29 09:36:31 +02:00
test-signal.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-spawn-snid.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-spawn.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-struts.lua Merge pull request #1341 from psychon/modeline 2017-01-02 19:56:06 +01:00
test-tag-gap-single-client.lua Fix awful.tag.object.get_gap_single_client (#1190) 2016-10-26 01:43:45 +02:00
test-tooltip.lua Fix test-tooltip.lua: Run the event loop 2016-09-30 09:36:47 +02:00
test-urgent.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-use-after-gc.lua Improve behaviour of GC'd objects 2016-09-24 14:37:07 +02:00
test-wallpaper.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00