Skip to content

Commit

Permalink
The child window example follows the new platform module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sin committed Sep 4, 2022
1 parent 9919b50 commit 771f642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/child_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use winit::{
dpi::{LogicalPosition, LogicalSize, Position},
event::{ElementState, Event, KeyboardInput, WindowEvent},
event_loop::{ControlFlow, EventLoop, EventLoopWindowTarget},
platform::unix::{WindowBuilderExtUnix, WindowExtUnix},
platform::x11::{WindowBuilderExtX11, WindowExtX11},
window::{Window, WindowBuilder, WindowId},
};

Expand All @@ -17,7 +17,7 @@ fn spawn_child_window(
windows: &mut HashMap<u32, Window>,
) {
let child_window = WindowBuilder::new()
.with_x11_parent(WindowId::from(parent as u64))
.with_parent(WindowId::from(parent as u64))
.with_title("child window")
.with_inner_size(LogicalSize::new(200.0f32, 200.0f32))
.with_position(Position::Logical(LogicalPosition::new(0.0, 0.0)))
Expand Down

0 comments on commit 771f642

Please sign in to comment.