summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/awesome/rc.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 7847a5e..527a2bc 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -151,17 +151,7 @@ mytaglist.buttons = awful.util.table.join(
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
awful.button({ }, 1, function (c)
- if c == client.focus then
- c.minimized = true
- else
- -- Without this, the following
- -- :isvisible() makes no sense
- c.minimized = false
- if not c:isvisible() then
- awful.tag.viewonly(c:tags()[1])
- end
- -- This will also un-minimize
- -- the client, if needed
+ if c ~= client.focus then
client.focus = c
c:raise()
end