8000 native/linux_wayland: Respect window_resizable by bolphen · Pull Request #620 · not-fl3/miniquad · GitHub
[go: up one dir, main page]

Skip to content
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/native/linux_wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,21 @@ where
wm_class.as_ptr()
);

if !conf.window_resizable {
for set_size in [
extensions::xdg_shell::xdg_toplevel::set_max_size,
extensions::xdg_shell::xdg_toplevel::set_min_size,
] {
wl_request!(
display.client,
display.xdg_toplevel,
set_size,
conf.window_width,
conf.window_height
);
}
}

if conf.fullscreen {
display.set_fullscreen(true);
}
Expand Down
Loading
0