aconstlink / motor

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

Window handling in app needs review #96

Closed aconstlink closed 3 weeks ago

aconstlink commented 1 month 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.