aboutsummaryrefslogtreecommitdiff
path: root/src/winit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/winit.rs')
-rw-r--r--src/winit.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/winit.rs b/src/winit.rs
index 7148f961..d1253199 100644
--- a/src/winit.rs
+++ b/src/winit.rs
@@ -2,6 +2,7 @@ use std::time::Duration;
use smithay::backend::renderer::damage::OutputDamageTracker;
use smithay::backend::renderer::gles::GlesRenderer;
+use smithay::backend::renderer::{DebugFlags, Renderer};
use smithay::backend::winit::{self, WinitError, WinitEvent, WinitEventLoop, WinitGraphicsBackend};
use smithay::output::{Mode, Output, PhysicalProperties, Subpixel};
use smithay::reexports::calloop::timer::{TimeoutAction, Timer};
@@ -158,6 +159,9 @@ impl Winit {
}
}
}
+ BackendAction::ToggleDebugTint => {
+ renderer.set_debug_flags(renderer.debug_flags() ^ DebugFlags::TINT);
+ }
}
}
WinitEvent::Focus(_) => (),