mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-09 02:17:24 +08:00
Add workaround for games that minimize on focus loss
This commit is contained in:
parent
7beddc0a0c
commit
c266604f21
1 changed files with 22 additions and 0 deletions
|
|
@ -729,6 +729,28 @@ awful.rules.rules = {
|
|||
end
|
||||
},
|
||||
|
||||
-- "Fix" games that minimize on focus loss
|
||||
-- Usually this can be fixed by launching them with
|
||||
-- SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
|
||||
-- but not all games use SDL
|
||||
{
|
||||
rule_any = {
|
||||
instance = {
|
||||
"synthetik.exe"
|
||||
},
|
||||
},
|
||||
properties = {},
|
||||
callback = function (c)
|
||||
-- Unminimize automatically
|
||||
c:connect_signal("property::minimized", function()
|
||||
if c.minimized then
|
||||
c.minimized = false
|
||||
end
|
||||
end)
|
||||
end
|
||||
},
|
||||
|
||||
-- League of Legends client QoL fixes
|
||||
{
|
||||
rule = { instance = "league of legends.exe" },
|
||||
properties = {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue