Hi all
Is there a way to sense whether a parent-level window is active? By "active" I mean that the window is in focus with the title bar highlighted.
[cyclone/active] is able to sense whether the current window is active, but I specifically need to know if the parent (grandparent, etc) window is active.
Solutions involving externals are welcome.
I have been using [toxy/tot] for this which is unfortunately deprecated and can't be found anymore although the external that was included in Pd-extended still works for me on Debian. I'd love to find an alternative as well.
Ingo
From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of Liam
Goodacre
Sent: Sunday, February 04, 2018 6:18 AM
Hi all
Is there a way to sense whether a parent-level window is active? By
"active" I mean that the window is in focus with the title bar highlighted.
[cyclone/active] is able to sense whether the current window is active,
but I specifically need to know if the parent (grandparent, etc) window is active.
Solutions involving externals are welcome.
2018-02-05 9:32 GMT-02:00 Ingo ingo@miamiwave.com:
I'd love to find an alternative as well.
Hi, I offered Liam to include an object that does this kind of thing in my new library "else".
And... I'm doing it anyway now ;)
cheers
You're the greatest, Alex! If it works, this will fix a long standing bug in Context, and you'll be a hero.
If you're making a new object, you might want to consider that the Cyclone object reports 0 ("inactive") whenever you right click on the patch. I don't know if this is a bug, but it would seem more desirable to me if the object ignored right clicks and only reported whether or not the window is active. ________________________________ From: Pd-list pd-list-bounces@lists.iem.at on behalf of Alexandre Torres Porres porres@gmail.com Sent: 05 February 2018 14:57 To: Ingo Cc: PD list Subject: Re: [PD] sensing whether a window is active
2018-02-05 9:32 GMT-02:00 Ingo <ingo@miamiwave.commailto:ingo@miamiwave.com>:
I'd love to find an alternative as well.
Hi, I offered Liam to include an object that does this kind of thing in my new library "else".
And... I'm doing it anyway now ;)
cheers
2018-02-05 16:50 GMT-02:00 Liam Goodacre liamg_uw@hotmail.com:
You're the greatest, Alex! If it works, this will fix a long standing bug in Context, and you'll be a hero.
If you're making a new object, you might want to consider that the Cyclone object reports 0 ("inactive") whenever you right click on the patch. I don't know if this is a bug, but it would seem more desirable to me if the object ignored right clicks and only reported whether or not the window is active.
I don't understand this. With [cyclone/active], right clicking on an active patch doesn't report 0 for me... if it does for you, then it's a bug I guess, please open an issue for cyclone and we'll look into that.
Now, if you mean that if you right click on a patch window that isn't active, is not that it reports "0", it doesn't report anything, because doing that does not make that patch window active. But then this is Pd's business, that's how it rolls, so I don't see how to deal with that unless pd handles it itself.
Anyway, I got a new object in else: [window] (it's already up in else's repository). It seems to do what both of you want. I'll schedule a new release soon, immediately after we release a cyclone update next week.
cheers
Cool!
Thanks Alexandre!
Ingo
From: Alexandre Torres Porres [mailto:porres@gmail.com] Sent: Tuesday, February 13, 2018 9:24 PM To: Liam Goodacre; Ingo Cc: PD list Subject: Re: [PD] sensing whether a window is active
2018-02-05 16:50 GMT-02:00 Liam Goodacre <liamg_uw@hotmail.com mailto:liamg_uw@hotmail.com >:
You're the greatest, Alex! If it works, this will fix a long standing bug in Context, and you'll be a hero.
If you're making a new object, you might want to consider that the Cyclone object reports 0 ("inactive") whenever you right click on the patch. I don't know if this is a bug, but it would seem more desirable to me if the object ignored right clicks and only reported whether or not the window is active.
I don't understand this. With [cyclone/active], right clicking on an active patch doesn't report 0 for me... if it does for you, then it's a bug I guess, please open an issue for cyclone and we'll look into that.
Now, if you mean that if you right click on a patch window that isn't active, is not that it reports "0", it doesn't report anything, because doing that does not make that patch window active. But then this is Pd's business, that's how it rolls, so I don't see how to deal with that unless pd handles it itself.
Anyway, I got a new object in else: [window] (it's already up in else's repository). It seems to do what both of you want. I'll schedule a new release soon, immediately after we release a cyclone update next week.
cheers