Skip to content

Commit

Permalink
Improve xinerama 02_removed_display error check and message
Browse files Browse the repository at this point in the history
  • Loading branch information
knixeur committed Mar 4, 2020
1 parent 2a0d44e commit cf506c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/xinerama/02_removed_display.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod_xinerama.refresh();

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

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

0 comments on commit cf506c6

Please sign in to comment.