Hi,

On Sat, Jul 10, 2004 at 11:12:03PM +0300, Tuomo Valkonen wrote:
> On Sat, Jul 10, 2004 at 07:47:52PM +0200, Stefan Heimann wrote:
> > There are two frames on a FloatWS, frame2 is completely hidden by
> > frame1. Now I want to focus and raise frame2. I could do this with TAB
> > but I want to use the windowlist. But selecting frame2 from the
> > windowlist only gives focus to frame2 but does not raise it. How to
> > solve this problem?
> 
> See menus.windowlist in menus.lua and register an alternative 
> implementation with defmenu (you can pass it a generating function
> as well as the more common table).

Ok, the default windowlist implementation looks like this (using
version 2-20040407):

function menus.windowlist()
    local cwins=complete_clientwin("")
    table.sort(cwins)
    local entries={}
    for i, name in cwins do
        local cwin=lookup_clientwin(name)
        entries[i]=menuentry(name, function() cwin:goto() end)
    end
    
    return entries
end

I guess the cwin:goto() should be changed. I tried cwin:raise() but it
did not work. What is the right function here?

Stefan

Reply via email to