I am trying to implement "before WB close" and "after WB open" notification support for SDL2. I have various success when using the message method. Depending how I configure the notification, test application gets only the "before close" event, or both during WB screen mode switch - but any further notifications are not received (imagine another WB mode switch like 32->16->32).
Therefore I am wondering how to use the hook method alternatively, but couldn't find any examples.
I suppose I will try to create a separate task for notification listener if this is a matter of not actually checking the messages. Now notification message port is checked in the common event handler which is "pumped" by the SDL application, but it's able to receive normal Intuition messages after mode switch, so I have no idea why not new screen notifications...