mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 00:56:12 +08:00
fixed minimized clients getting unminimized after restart
This commit is contained in:
parent
ab47134d7f
commit
55bae72570
1 changed files with 3 additions and 4 deletions
|
|
@ -774,15 +774,14 @@ client.connect_signal('property::geometry',
|
|||
)
|
||||
|
||||
-- Make rofi able to unminimize minimized clients
|
||||
-- Note: causes clients to unminimize after restarting awesome
|
||||
client.connect_signal("request::activate",
|
||||
function(c, context, hints)
|
||||
client.connect_signal("request::activate", function(c, context, hints)
|
||||
if not awesome.startup then
|
||||
if c.minimized then
|
||||
c.minimized = false
|
||||
end
|
||||
awful.ewmh.activate(c, context, hints)
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
-- Startup applications
|
||||
awful.spawn.with_shell( os.getenv("HOME") .. "/.config/awesome/autostart.sh")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue