THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#700 - tagtoggle shifts focus from current client window
User who did this - Lee Bigelow (ligelowbee)

----------
I just added a client refocus to the end of the toggle if no client (or the 
focused client) is passed to the function. Seems to work.

--- client.lua~
+++ client.lua
@@ -435,6 +435,8 @@
-- @param c Optional client to toggle, otherwise the focused one is used.
function toggletag(target, c)
    local sel = c or capi.client.focus
+    -- If 'c' is focused client, clear it so we trigger refocus at end
+    if c == capi.client.focus then c = nil end
    -- Check that tag and client screen are identical
    if sel and sel.screen == target.screen then
        local tags = sel:tags()
@@ -453,6 +455,11 @@
            tags[#tags + 1] = target
        end
        sel:tags(tags)
+        -- if no client passed, regain focus for client
+        if not c then
+           capi.client.focus = sel
+           sel:raise()
+        end
    end
end

----------

More information can be found at the following URL:
http://awesome.naquadah.org/bugs/index.php?do=details&task_id=700#comment1624

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to [email protected].

Reply via email to