gri3-wm/testcases
Orestis Floros 29f2510fa9
Fix aspect ratio bugs
- ICCCM says: > If a base size is not provided, the minimum size is to
be used in its place and vice versa.
i3 didn't obey the "vice versa" part. Min size and base size are both
saved without replacements in window_update_normal_hints,
floating_check_size makes the needed replacements if either was not
provided.
- Aspect ratio is now saved correctly in manage_window because
window_update_normal_hints is called.
- i3 didn't save the aspect ratio if the window conformed the given
aspect ratio range when handle_normal_hints was called. If the window
was resized to a size outside of the given bounds, i3 didn't correct it.
- Aspect ratio now affects only tiling windows, like the rest of the
normal size hints
- The aspect ratio calculation is now done without a loop

A real life example of how these changes affect the workflow:
An mpv window, when playing a video, sets its min == max aspect ratio
during mapping. i3 ignored these hints. When resized, the window's
aspect ratio was not preserved. With this commit, resizing floating mpv
windows will always preserve the aspect ratio.
2018-11-12 18:45:00 +02:00
..
lib Move get_output_for_workspace() to i3test 2018-06-27 14:56:50 +03:00
t Fix aspect ratio bugs 2018-11-12 18:45:00 +02:00
.gitignore Testcases: Use Xephyr instead of XDummy 2014-10-02 23:05:00 +02:00
Makefile.PL testcases/Makefile.PL: tell MakeMaker this is a pure-Perl distribution (#2922) 2017-09-10 11:25:43 +02:00
complete-run.pl.in complete-run.pl: accept the xvfb option from command line 2017-12-05 00:22:14 +02:00
i3-test.config Extend the fullscreen command 2014-12-10 20:42:52 +01:00
inject_randr1.5.c Fix missing prototypes 2018-10-13 21:10:10 +03:00
new-test Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
restart-state.golden tests: implement restart testing (actual option still missing) 2011-12-21 23:15:30 +00:00
valgrind.supp Add valgrind suppression file to testcases 2014-03-10 17:37:41 +01:00