Skip to content

Commit a9ec2e2

Browse files
authored
Deactivate grab on wayland, it doesn't work. (#158)
1 parent 9b771b8 commit a9ec2e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/linux/wayland/grab.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ pub fn grab<T>(callback: T) -> Result<(), GrabError>
305305
where
306306
T: Fn(Event) -> Option<Event> + 'static,
307307
{
308+
compile_error!("Wayland doesn't support grab yet");
308309
let mut kb = Keyboard::new().ok_or(GrabError::KeyboardError)?;
309310
let display = Display::new().ok_or(GrabError::MissingDisplayError)?;
310311
let (width, height) = display.get_size().ok_or(GrabError::MissingDisplayError)?;

0 commit comments

Comments
 (0)