output: always emit a destroy event in ~dtor

This commit is contained in:
Vaxry 2024-08-31 12:41:54 +02:00
parent cff00196f0
commit b9ab839ab3
2 changed files with 5 additions and 3 deletions

View file

@ -98,9 +98,7 @@ namespace Aquamarine {
class IOutput {
public:
virtual ~IOutput() {
;
}
virtual ~IOutput();
enum scheduleFrameReason : uint32_t {
AQ_SCHEDULE_UNKNOWN = 0,

View file

@ -2,6 +2,10 @@
using namespace Aquamarine;
Aquamarine::IOutput::~IOutput() {
events.destroy.emit();
}
Hyprutils::Memory::CSharedPointer<SOutputMode> Aquamarine::IOutput::preferredMode() {
for (auto const& m : modes) {
if (m->preferred)