Skip to content

Commit

Permalink
fix: return false on gtimer.start_new one time timer
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill committed Jul 24, 2024
1 parent a776d23 commit 63b3b24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions module/client/rules.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
local quake = require("module.quake")
local require = require("util.rel_require")

local aclient = require("awful.client")
Expand All @@ -11,6 +10,7 @@ local client_keys = require("configuration.keys.client")
local compat = require("util.awesome.compat")
local gshape = require("gears.shape")
local gtimer = require("gears.timer")
local quake = require("module.quake")
local stream = require("stream")

---@class AwesomeClientInstance
Expand Down Expand Up @@ -100,9 +100,10 @@ local rules = {
rule = { role = "pop-up", class = "Vivaldi-stable" },
callback = function(c) ---@param c AwesomeClientInstance
-- HACK: chromium doesn't respect the initial property when using '--app=%s'
return gtimer.start_new(0.2, function()
if not c.valid then return end
gtimer.start_new(0.2, function()
if not c.valid then return false end
c.maximized = false
return false
end)
end,
},
Expand Down

0 comments on commit 63b3b24

Please sign in to comment.