mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-22 05:49:48 +01:00
output: always emit a destroy event in ~dtor
This commit is contained in:
parent
cff00196f0
commit
b9ab839ab3
2 changed files with 5 additions and 3 deletions
|
@ -98,9 +98,7 @@ namespace Aquamarine {
|
|||
|
||||
class IOutput {
|
||||
public:
|
||||
virtual ~IOutput() {
|
||||
;
|
||||
}
|
||||
virtual ~IOutput();
|
||||
|
||||
enum scheduleFrameReason : uint32_t {
|
||||
AQ_SCHEDULE_UNKNOWN = 0,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue