Skip to content

Commit cf506c6

Browse files
committed
Improve xinerama 02_removed_display error check and message
1 parent 2a0d44e commit cf506c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/xinerama/02_removed_display.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod_xinerama.refresh();
22

3-
if notioncore.find_screen_id(1) then
4-
return "New number of screens should be 1, found ", notioncore.find_screen_id(1):name()
3+
if notioncore.find_screen_id(1) ~= nil then
4+
return "New number of screens should be 1, found " .. notioncore.find_screen_id(1):name()
55
end
66

77
os.execute("cp xinerama/fakexinerama-2monitors xinerama/.fakexinerama");

0 commit comments

Comments
 (0)