Fix maximization
This commit is contained in:
parent
0064a6a9c2
commit
7c1d7b0e07
|
@ -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,7 +137,7 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue