diff options
Diffstat (limited to 'src/tty.rs')
| -rw-r--r-- | src/tty.rs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -12,7 +12,7 @@ use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventTime}; use smithay::backend::egl::{EGLContext, EGLDisplay}; use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface}; use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture}; -use smithay::backend::renderer::{Bind, ImportEgl}; +use smithay::backend::renderer::{Bind, DebugFlags, ImportEgl}; use smithay::backend::session::libseat::LibSeatSession; use smithay::backend::session::{Event as SessionEvent, Session}; use smithay::backend::udev::{self, UdevBackend, UdevEvent}; @@ -192,6 +192,14 @@ impl Tty { } } } + BackendAction::ToggleDebugTint => { + if let Some(device) = tty.output_device.as_mut() { + for (_, compositor) in &mut device.surfaces { + compositor + .set_debug_flags(compositor.debug_flags() ^ DebugFlags::TINT); + } + } + } }; }) .unwrap(); |
