diff options
Diffstat (limited to 'src/niri.rs')
| -rw-r--r-- | src/niri.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/niri.rs b/src/niri.rs index c59a3df8..5b270f48 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -528,6 +528,8 @@ pub struct PointContents { pub window: Option<(Window, HitType)>, // If surface belongs to a layer surface, this is that layer surface. pub layer: Option<LayerSurface>, + // Pointer is over a hot corner. + pub hot_corner: bool, } #[derive(Debug, Default)] @@ -3403,6 +3405,7 @@ impl Niri { if !hot_corners.off { let hot_corner = Rectangle::from_size(Size::from((1., 1.))); if hot_corner.contains(pos_within_output) { + rv.hot_corner = true; return rv; } } |
