screen: Set the managed flag when creating screens in awful.screen.
This commit is contained in:
parent
875941e9ac
commit
3e19251d14
|
@ -941,10 +941,10 @@ capi.screen.connect_signal("added", function(s)
|
||||||
-- If it was emited from here when screens are created with fake_add,
|
-- If it was emited from here when screens are created with fake_add,
|
||||||
-- the Lua code would not have an opportunity to polutate the screen
|
-- the Lua code would not have an opportunity to polutate the screen
|
||||||
-- metadata. Thus, the DPI may be wrong when setting the wallpaper.
|
-- metadata. Thus, the DPI may be wrong when setting the wallpaper.
|
||||||
--if capi.screen.automatic_factory then
|
if s._managed ~= "Lua" then
|
||||||
s:emit_signal("request::desktop_decoration")
|
s:emit_signal("request::desktop_decoration")
|
||||||
s:emit_signal("request::wallpaper")
|
s:emit_signal("request::wallpaper")
|
||||||
--end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Resize the wallpaper(s)
|
-- Resize the wallpaper(s)
|
||||||
|
|
|
@ -152,13 +152,14 @@ function module.create_screen_handler(viewport)
|
||||||
geo.x,
|
geo.x,
|
||||||
geo.y,
|
geo.y,
|
||||||
geo.width,
|
geo.width,
|
||||||
geo.height
|
geo.height,
|
||||||
|
{_managed = true}
|
||||||
)
|
)
|
||||||
|
|
||||||
update_screen_viewport(s)
|
update_screen_viewport(s)
|
||||||
|
|
||||||
--s:emit_signal("request::desktop_decoration")
|
s:emit_signal("request::desktop_decoration")
|
||||||
--s:emit_signal("request::wallpaper")
|
s:emit_signal("request::wallpaper")
|
||||||
end
|
end
|
||||||
|
|
||||||
function module.remove_screen_handler(viewport)
|
function module.remove_screen_handler(viewport)
|
||||||
|
|
Loading…
Reference in New Issue