quake: set default geometry only on first spawn

This commit is contained in:
copycat-killer 2016-08-03 17:38:51 +02:00
parent d747e16910
commit 85ed92417d
7 changed files with 33 additions and 30 deletions

View File

@ -54,6 +54,7 @@ function quake:display()
-- The client does not exist, we spawn it -- The client does not exist, we spawn it
awful.util.spawn(self.app .. " " .. string.format(self.argname, self.name), awful.util.spawn(self.app .. " " .. string.format(self.argname, self.name),
false, self.screen) false, self.screen)
self.exist = true
return return
end end
@ -61,7 +62,11 @@ function quake:display()
awful.client.floating.set(client, true) awful.client.floating.set(client, true)
client.border_width = 0 client.border_width = 0
client.size_hints_honor = false client.size_hints_honor = false
if self.notexist then
-- set default geometry only on first spawn
client:geometry(self.geometry) client:geometry(self.geometry)
self.notexist = false
end
-- Not sticky and on top -- Not sticky and on top
client.ontop = true client.ontop = true

View File

@ -21,7 +21,6 @@ local active = false -- true if redshift is active
local running = false -- true if redshift was initialized local running = false -- true if redshift was initialized
local update_fnct = function() end -- Function that is run each time redshift is toggled. See redshift:attach(). local update_fnct = function() end -- Function that is run each time redshift is toggled. See redshift:attach().
local function init() local function init()
-- As there is no way to determine if redshift was previously -- As there is no way to determine if redshift was previously
-- toggled off (i.e Awesome on-the-fly restart), kill redshift to make sure -- toggled off (i.e Awesome on-the-fly restart), kill redshift to make sure

View File

@ -16,7 +16,6 @@ local tonumber = tonumber
local setmetatable = setmetatable local setmetatable = setmetatable
local smapi = {} local smapi = {}
local apipath = "/sys/devices/platform/smapi" local apipath = "/sys/devices/platform/smapi"
-- Most are readable values, but some can be written to (not implemented, yet?) -- Most are readable values, but some can be written to (not implemented, yet?)

2
wiki

@ -1 +1 @@
Subproject commit 7689c026b9b2a1a7d2582c48700aace3983b8711 Subproject commit 1a72051053b009e74f7a50e5cff784829eda370c