aconstlink / motor

Software Framework for Audio/Visual/Interactive Real-Time Applications
MIT License
3 stars 0 forks source link

Window handling in app needs review #96

Closed aconstlink closed 5 months ago

aconstlink commented 6 months ago

In the app class, the window id needs to be part of the window data.

Because the window id is passed to the user and the id represents the direct index into the window array, no window can be erased out of that array. Otherwise the following windows would not match the window_ids the user has acquired.

So if the window id goes into the window data, it can be set to any number. The windows can not be accessed directly then anymore.