linux: Respect window_min_size
property (#15314)
https://github.com/zed-industries/zed/pull/13126 added the `window_min_size` property for window creation, but it was only implemented for macOS. This PR implements the property on Linux as well. Release Notes: - N/A
This commit is contained in:
parent
3751f67730
commit
88653c4e3e
3 changed files with 13 additions and 2 deletions
|
@ -264,7 +264,10 @@ impl WaylandWindow {
|
|||
.wm_base
|
||||
.get_xdg_surface(&surface, &globals.qh, surface.id());
|
||||
let toplevel = xdg_surface.get_toplevel(&globals.qh, surface.id());
|
||||
toplevel.set_min_size(50, 50);
|
||||
|
||||
if let Some(size) = params.window_min_size {
|
||||
toplevel.set_min_size(size.width.0 as i32, size.height.0 as i32);
|
||||
}
|
||||
|
||||
if let Some(fractional_scale_manager) = globals.fractional_scale_manager.as_ref() {
|
||||
fractional_scale_manager.get_fractional_scale(&surface, &globals.qh, surface.id());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue