From 63aa1e7bdc67222bb50ca6029a6d5019c0cb7d4f Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 10 Mar 2019 14:12:34 +0700 Subject: Update 2019-03-10 --- awesome/.config/awesome/rc.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'awesome/.config') diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 5578dbc..bc67455 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -515,6 +515,7 @@ local globalkeys = awful.util.table.join( local clientkeys = awful.util.table.join( awful.key({modkey}, "f", function (c) + awful.titlebar.show(c) c.fullscreen = not c.fullscreen c:raise() end, @@ -723,8 +724,7 @@ client.connect_signal( -- Show titlebar if client is floating, hide otherwise. if not c.floating and - awful.screen.focused().selected_tag.layout ~= - awful.layout.suit.floating then + awful.layout.get(c.screen) ~= awful.layout.suit.floating then awful.titlebar.hide(c) end end @@ -734,11 +734,8 @@ client.connect_signal( client.connect_signal( "property::floating", function (c) - if c.first_tag == nil then - end if c.floating or - (c.first_tag ~= nil and - c.first_tag.layout == awful.layout.suit.floating) then + awful.layout.get(c.screen) == awful.layout.suit.floating then awful.titlebar.show(c) else awful.titlebar.hide(c) -- cgit 1.4.1