From c266604f21dea86e2eca12aea4f9317d08a15f5d Mon Sep 17 00:00:00 2001 From: elenapan Date: Tue, 7 Apr 2020 02:58:59 +0300 Subject: [PATCH] Add workaround for games that minimize on focus loss --- config/awesome/rc.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 52159f5..46a6654 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -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 = {},