Fix compilation on non-x11

This commit is contained in:
elkowar 2021-02-17 16:50:10 +01:00
parent e9af869a0a
commit ce2ce250e4

View file

@ -2,6 +2,8 @@ pub use platform::*;
#[cfg(feature = "no-x11")]
mod platform {
use crate::config::{Side, StrutDefinition};
use anyhow::*;
pub fn reserve_space_for(window: &gtk::Window, monitor: gdk::Rectangle, strut_def: StrutDefinition) -> Result<()> {
Err(anyhow!("Cannot reserve space on non-X11 backends"))
}