1778adae0d
Commit 46874eed0 accidentally changed the behavior of the function in an incompatible way. Before addressing the actual issue, add a reproducer to the unit tests to hopefully prevent future breakage. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/615