awesome/tests/examples
Sergey Vlasov 61cdc40595 awful.placement: Fix no_offscreen when composed with other functions
The awful.placement.no_offscreen function did not work properly when
composed with other placement functions; in particular, the default
configuration (awful.placement.no_overlap+awful.placement.no_offscreen)
was broken.  The compose function sets args.pretend=true and puts the
result of the previous placement function into args.override_geometry
before calling the next placement function, but no_offscreen did not use
args.override_geometry, therefore the result of the previous placement
function was discarded.

All other placement functions use `geometry_common(c, args)` to get the
current client geometry; `area_common(c)` should be used only when
getting geometry of other clients.

This change also fixes the problem with margin handling (adding margins
should not affect the window size, only the window position should
change); the test output which was adjusted in commit 0275d3537d
is adjusted again to account for this change.

Signed-off-by: Sergey Vlasov <sigprof@gmail.com>
2018-09-13 08:23:36 +03:00
..
awful awful.placement: Fix no_offscreen when composed with other functions 2018-09-13 08:23:36 +03:00
gears/shape tests/examples: Explicitly mark tests generating an image 2018-07-24 14:12:44 +02:00
shims shims: Fix a typo in a root.fake_input name 2018-08-06 18:34:40 -04:00
text tests: Add keygrabber tests. 2018-08-06 19:03:25 -04:00
wibox example tests: Save expected test output in a txt file 2018-07-27 08:56:18 +02:00
CMakeLists.txt tests/examples: Run example-tests in build phase, not configure phase 2018-08-06 16:50:46 +02:00
runner.sh build: Auto-add example tests outputs. (#2339) 2018-08-06 09:30:59 -04:00