Update screen.lua

This commit is contained in:
Aire-One 2021-10-04 19:48:59 -07:00 committed by Emmanuel Lepage Vallee
parent 4f0c3c5d90
commit eb89c3688c
2 changed files with 5 additions and 7 deletions

View File

@ -208,11 +208,8 @@ end
-- Reading this (read only) property returns a screenshot of the physical
-- (Xinerama) screen as a cairo surface.
--
-- @DOC_screen_content_EXAMPLE@
--
-- @property content
-- @tparam screen s (self)
-- @treturn cairo scurface of the screen content
-- @tparam gears.surface content
function screen.object.get_content(s)
local geo = s.geometry
@ -222,7 +219,7 @@ function screen.object.get_content(s)
cr:set_source_surface(source, -geo.x, -geo.y)
cr:rectangle(0, 0, geo.width, geo.height)
cr:fill()
return target
return target
end
--- Get or set the screen padding.

View File

@ -29,8 +29,6 @@ Gtk:main{...}
local tiny_client = { lua_executable, "-e", string.format(
tiny_client_code_template, client_dim, client_dim)}
-- how to make a GTK window using LGI
-- Split in the screen into 2 distict screens.
screen[1]:split()
@ -156,6 +154,9 @@ table.insert(steps, function()
return
end
-- Make sure the process finishes. Just `c:kill()` only
-- closes the window. Adding some handlers to the GTK "app"
-- created some unwanted side effects in the CI.
awesome.kill(c.pid, 9)
return true