Skip to content

Commit

Permalink
wm: assert that root window has root_window_id
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Nov 27, 2024
1 parent a57a20b commit 1636622
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/wm.sdl.v
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ pub fn (mut wm WM) init_root_window() !&Window {
height: win_h
}
win := wm.new_window(window_config)!
assert win.id == root_window_id
wm.root = win
return wm.root
}
Expand Down

0 comments on commit 1636622

Please sign in to comment.