Close floating window, Ableton Keystrokes Inactive (Live8/Max5)

D_Lo's icon

Live 8.4.2.
Max 5.1.9
Mac OS 10.7.5

The problem I'm having...

is that I've made a device with a floating window interface and when I close the window, the keystrokes (QWERTY not MIDI) I've mapped to its controls become unresponsive.

The reason I think this problem exists...

... is due to the Ableton GUI not being the top most window once the floating interface has been closed. Once i click anywhere in the GUI, the keystrokes regain functionality.

What I've already tried...

- sending (window exec, front) to [thispatcher]
- sending (call focus_view) messages via the Live API.

Both these messages are sent in response to the window being closed. They do not help with my problem.

Any thoughts?

D_Lo's icon

Ok, I found a solution having to do with my use of [thispatcher].

In this device, as the floating interface window is opened, I send [thispatcher] a series of messages that keep this window at the top layer, constantly floating over Ableton's GUI (despite clicking around different parameters of my set).

SOLUTION: As the window is closed, I now use a [closebang] to send (window flags nofloat, window exec) to [thispatcher].