wayland: add bug entry for alacritty
This commit is contained in:
parent
a65921ca80
commit
7661e011c0
2 changed files with 22 additions and 3 deletions
|
|
@ -156,7 +156,12 @@ impl XdgToplevel {
|
|||
fn send_configure_checked(&self, mut width: i32, mut height: i32) {
|
||||
width = width.max(1);
|
||||
height = height.max(1);
|
||||
if self.bugs.get().respect_min_max_size {
|
||||
let bugs = self.bugs.get();
|
||||
if let Some((mw, mh)) = bugs.min_size {
|
||||
width = width.max(mw);
|
||||
height = height.max(mh);
|
||||
}
|
||||
if bugs.respect_min_max_size {
|
||||
if let Some(min) = self.min_width.get() {
|
||||
width = width.max(min);
|
||||
}
|
||||
|
|
@ -647,7 +652,11 @@ impl ToplevelNodeBase for XdgToplevel {
|
|||
impl XdgSurfaceExt for XdgToplevel {
|
||||
fn initial_configure(self: Rc<Self>) -> Result<(), XdgSurfaceError> {
|
||||
let rect = self.xdg.absolute_desired_extents.get();
|
||||
self.send_configure(rect.width(), rect.height());
|
||||
if rect.is_empty() {
|
||||
self.send_configure(0, 0);
|
||||
} else {
|
||||
self.send_configure_checked(rect.width(), rect.height());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue