fn apply_window_position(
    mut window_def: config::EwwWindowDefinition,
    monitor_geometry: gdk::Rectangle,
    window: &gtk::Window,
) -> Result<()> {
    let (gtk_window_width, gtk_window_height) = window.get_size();
    window_def.geometry.size = Coords { x: NumWithUnit::Pixels(gtk_window_width), y: NumWithUnit::Pixels(gtk_window_height) };
    let gdk_window = window.get_window().context("Failed to get gdk window from gtk window")?;
    let actual_window_rect = window_def.geometry.get_window_rectangle(monitor_geometry);
    gdk_window.move_(actual_window_rect.x, actual_window_rect.y);
    Ok(())
}
/// Apply the provided window-positioning rules to the window.
Apply the provided window-positioning rules to the window.
Apply the provided window - positioning rules to the window .
fn apply_window_position(
    mut window_def: config::EwwWindowDefinition,
    monitor_geometry: gdk::Rectangle,
    window: &gtk::Window,
) -> Result<()> {
    let (gtk_window_width, gtk_window_height) = window.get_size();
    window_def.geometry.size = Coords { x: NumWithUnit::Pixels(gtk_window_width), y: NumWithUnit::Pixels(gtk_window_height) };
    let gdk_window = window.get_window().context("Failed to get gdk window from gtk window")?;
    let actual_window_rect = window_def.geometry.get_window_rectangle(monitor_geometry);
    gdk_window.move_(actual_window_rect.x, actual_window_rect.y);
    Ok(())
}
fn apply_window_position ( mut window_def : config :: EwwWindowDefinition , monitor_geometry : gdk :: Rectangle , window : & gtk :: Window , ) -> Result < ( ) > { let ( gtk_window_width , gtk_window_height ) = window . get_size ( ) ; window_def . geometry . size = Coords { x : NumWithUnit :: Pixels ( gtk_window_width ) , y : NumWithUnit :: Pixels ( gtk_window_height ) } ; let gdk_window = window . get_window ( ) . context ( " " ) ? ; let actual_window_rect = window_def . geometry . get_window_rectangle ( monitor_geometry ) ; gdk_window . move_ ( actual_window_rect . x , actual_window_rect . y ) ; Ok ( ( ) ) }
Apply the provided window-positioning rules to the window.
Apply the provided window - positioning rules to the window .
window_def
config::EwwWindowDefinition
monitor_geometry
gdk::Rectangle
window
&gtk::Window