This commit is contained in:
parent
6c27f4295b
commit
94d3918d14
|
@ -25,10 +25,12 @@ local function should_display_on(self, s)
|
||||||
if not self._private.widget then
|
if not self._private.widget then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local success, own_s = pcall(function()
|
local own_s = self._private.screen
|
||||||
return capi.screen[self._private.screen]
|
if type(own_s) == "number" and (own_s < 1 or own_s > capi.screen.count()) then
|
||||||
end)
|
-- Invalid screen number
|
||||||
return success and own_s == s
|
return false
|
||||||
|
end
|
||||||
|
return capi.screen[self._private.screen] == s
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Layout this layout
|
-- Layout this layout
|
||||||
|
|
|
@ -2,7 +2,9 @@ local gears_obj = require("gears.object")
|
||||||
|
|
||||||
local screen, meta = awesome._shim_fake_class()
|
local screen, meta = awesome._shim_fake_class()
|
||||||
|
|
||||||
screen.count = 1
|
function screen.count()
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
|
||||||
local function create_screen(args)
|
local function create_screen(args)
|
||||||
local s = gears_obj()
|
local s = gears_obj()
|
||||||
|
|
Loading…
Reference in New Issue