ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] How to put windows into groups by application type.


From: tomm smith
Subject: Re: [RP] How to put windows into groups by application type.
Date: Tue, 16 Mar 2010 13:32:45 -0400

On 3/15/10, Shawn Betts <address@hidden> wrote:
> 2010/3/15 Eric A <address@hidden>:
>> On Sun, Mar 14, 2010 at 5:09 AM, tomm smith <address@hidden> wrote:
>>> I believe I have created a patch for this desired hook. Only had to
>>> change a few lines, basically define the hook and add a hook call to
>>> new_window(). I am a newborn in the C world so if any of this is
>>> hackery that does not comply with GNU coding standards I do apologize.
>>> I have attached the patch to this email. I tested out the code very
>>> shortly I plan to test it more, but initial test showed everything was
>>> working smoothly.
>>>
>>
>> Thanks, I think this is what I'm looking for! I tried it out, but ran
>> into a problem. It seems that for most programs,
>> new_window(XCreateWindowEvent *e) is called multiple times. For
>> example, starting midori issues 2 events and firefox 3 events. In
>> fact, the only program that I've tested that calls it just once is
>> urxvt.
>
> The hook should be called when the window is mapped, not when it is
> created. Applications create a bunch of windows at start up that
> you're not interested in. It's a quirk of ratpoison that it keeps
> track of all created windows instead of simply waiting for a map
> request.
>
> -Shawn
>
>
> _______________________________________________
> Ratpoison-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ratpoison-devel.
>

I take it this is more of an issue with following the function of the
code? So in case RP is changed to not track created windows, it then
doesnt break the hook? because it was working as expected with the
position it was in. I did some more digging and looked into
map_request() this works correctly.

Attachment: newWindow-hook-20090316.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]