skippy-xd icon indicating copy to clipboard operation
skippy-xd copied to clipboard

'switchDesktopOnActivate' not works when client is iconified in awesome wm

Open actionless opened this issue 9 years ago • 5 comments

Skippy works well when window is placed on other tag (it swiches to that tag when selecting preview).

But when window is iconified it only sends 'urgent' event to it but client still stays iconified.

actionless avatar Aug 03 '14 18:08 actionless

Sorry for the late reply, actionless.

It's indeed not our fault. Check ./lib/awful/ewmh.lua.in in awesome source code:

-- Activate a window
function ewmh.activate(c)
    if c:isvisible() then
        client.focus = c
        c:raise()
    elseif not awesome.startup then
        c.urgent = true
    end
end

So Awesome intentionally ignores EWMH focus events sent to invisible windows.

Probably there are other ways to de-iconify the window (ICCCM WM_CHANGE_STATE or simply XMapWindow()?), but EWMH _NET_WM_ACTIVE_WINDOW seemingly is the method most panels use.

richardgv avatar Aug 05 '14 04:08 richardgv

thanks for pointing that out! i changed that routine to leave only the first case and it's working as expected now.

but i am still confused on why did awesome developers did it in that way (mb u hv any ideas?)

actionless avatar Aug 05 '14 06:08 actionless

I found a piece of related discussion here: https://awesome.naquadah.org/bugs/index.php?do=details&task_id=848

richardgv avatar Aug 05 '14 07:08 richardgv

hm, after reading that it became even more confusing

i will try to run other panels inside awesome and will take a look if some of them behaves in a different way than skippy for restoring minimized client and if will find out smth interesting will post a ticket

actionless avatar Aug 05 '14 08:08 actionless

so i tried few panels and yep, they're behave the same in this situation

how do u think, can it be useful to have an option to workaround that behavior? (i suspect it will be the same not only in awesome but in few other tiling WMs)

smth like useActivateWorkaround = true

actionless avatar Aug 07 '14 07:08 actionless