Update screen.lua
This commit is contained in:
parent
4f0c3c5d90
commit
eb89c3688c
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue