mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 01:25:59 +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 {
|
class IOutput {
|
||||||
public:
|
public:
|
||||||
virtual ~IOutput() {
|
virtual ~IOutput();
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum scheduleFrameReason : uint32_t {
|
enum scheduleFrameReason : uint32_t {
|
||||||
AQ_SCHEDULE_UNKNOWN = 0,
|
AQ_SCHEDULE_UNKNOWN = 0,
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
using namespace Aquamarine;
|
using namespace Aquamarine;
|
||||||
|
|
||||||
|
Aquamarine::IOutput::~IOutput() {
|
||||||
|
events.destroy.emit();
|
||||||
|
}
|
||||||
|
|
||||||
Hyprutils::Memory::CSharedPointer<SOutputMode> Aquamarine::IOutput::preferredMode() {
|
Hyprutils::Memory::CSharedPointer<SOutputMode> Aquamarine::IOutput::preferredMode() {
|
||||||
for (auto const& m : modes) {
|
for (auto const& m : modes) {
|
||||||
if (m->preferred)
|
if (m->preferred)
|
||||||
|
|
Loading…
Reference in a new issue