mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 15:25:33 +02:00
The various SDL_Tray*DBus structs are supposed to be backend-specific subclasses of the corresponding SDL_Tray* structs. This is done by making the first member be a 'parent' of that type, so that, e.g., SDL_TrayDriverDBus can be cast into an SDL_TrayDriver. However, these '_parent' members were mistakenly removed in commitce90105cf8("Clean up the tray D-Bus code"), as they're never directly referenced. Reinstate these variables, and instead of casting SDL_Tray*DBus to SDL_Tray* on creation, reference the _parent member directly, so that any tooling will know the variable is indeed used. In addition, rename _parent to class_parent, to make its purpose more obvious. Fixes:ce90105cf8("Clean up the tray D-Bus code")