diff options
author | lilydjwg <lilydjwg@gmail.com> | 2024-01-29 20:54:28 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-01-29 20:54:28 +0100 |
commit | 6e0a18f82bd04a45e9682523c42af9cbbc37684c (patch) | |
tree | d13ee399f7bbae3045ae5afc85be2308de28e3ee /src/testdir/test_startup.vim | |
parent | 94ff09a0935bc78fd81e9c79f099d42c94e3c218 (diff) |
patch 9.1.0064: No Wayland supportv9.1.0064
Problem: No Wayland support
Solution: Add Wayland UI support
(lilydjwg)
closes: #9639
Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 7bf5a41162..7c70391604 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -518,9 +518,10 @@ func Test_geometry() call writefile([&columns, &lines, getwinposx(), getwinposy(), string(getwinpos())], "Xtest_geometry") qall [CODE] + " Hide menu because gtk insists to make the window wide enough to show it completely " Some window managers have a bar at the top that pushes windows down, " need to use at least 130, let's do 150 - if RunVim([], after, '-f -g -geometry 31x13+41+150') + if RunVim(['set guioptions-=m'], after, '-f -g -geometry 31x13+41+150') let lines = readfile('Xtest_geometry') " Depending on the GUI library and the windowing system the final size " might be a bit different, allow for some tolerance. Tuned based on @@ -529,9 +530,12 @@ func Test_geometry() " for some reason, the window may contain fewer lines than requested " for GTK, so allow some tolerance call assert_inrange(8, 13, str2nr(lines[1])) - call assert_equal('41', lines[2]) - call assert_equal('150', lines[3]) - call assert_equal('[41, 150]', lines[4]) + " on Wayland there is no way to set or retrieve window positions + if empty($WAYLAND_DISPLAY) + call assert_equal('41', lines[2]) + call assert_equal('150', lines[3]) + call assert_equal('[41, 150]', lines[4]) + endif endif endif |