Le 29/01/2013 10:57, WIlly Malvault a écrit :
Hi Thomas !
I have the same problem and I found a (dirty?) hack today, that seems to work on me. Here's how I modified my generic rule (I juste added a callback function, which checks if an existing client has the same class, and attributes screen property as a result):

   -- All clients will match this rule.
   { rule = { },
     properties = { border_width = beautiful.border_width,
            border_color = beautiful.border_normal,
            focus = awful.client.focus.filter,
            keys = clientkeys,
            size_hints_honor = false,
            buttons = clientbuttons },
     callback = function (c)
           local clients = client.get()
           for i, c2 in pairs(clients) do
              if c.class == c2.class then
             c.screen = c2.screen
        awful.client.movetotag(tags[c2.screen][c2.tag], c )

end
           end
         end},
    -- another rules
}

Hopping it will be uselful to you.
W

Hello list,

Here is a solution to my problem (basically, in multimonitor setup, i want child windows (ie popup) to appear on same screen as parent window) by Willy Malvault.

I've added a small improvement that will make popup to appear also on same tag as parent window.

This hack is compatible with placement rules.

Hope it will help somebody

Keep up the good work.

Regards


--
Thomas Constans
openDoor
33(0)6 23 37 87 85


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

Reply via email to