Fix maximization

This commit is contained in:
Thomas Avé 2022-11-09 23:39:00 +01:00
parent 0064a6a9c2
commit 7c1d7b0e07
1 changed files with 5 additions and 5 deletions

View File

@ -28,8 +28,8 @@ local run_on_start_up = {
"numlockx on", "numlockx on",
"nm-applet", "nm-applet",
"xcape -e \"Super_L=Super_L|XF86Launch5\" -t 5000", "xcape -e \"Super_L=Super_L|XF86Launch5\" -t 5000",
os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/setup_display.sh", "xmodmap /home/user/.Xmodmap",
"xmodmap /home/user/.Xmodmap" os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/setup_display.sh"
} }
-- =================================================================== -- ===================================================================
@ -137,9 +137,9 @@ require("awesomewm-vim-tmux-navigator") {
client.connect_signal("property::maximized", function(focused) client.connect_signal("property::maximized", function(focused)
local hide = focused.maximized or focused.fullscreen local hide = focused.maximized or focused.fullscreen
for i, c in ipairs(client.get()) do for i, c in ipairs(client.get()) do
if not c.floating and c.screen == focused.screen then if not c.floating and c.screen == focused.screen and c.first_tag == focused.first_tag then
c.minimized = hide c.minimized = hide
end end
end end
focused.minimized = false focused.minimized = false