xdg-toplevel: center fullscreen surfaces with geometry smaller than output
This commit is contained in:
parent
642eaffcff
commit
197b069c50
6 changed files with 81 additions and 26 deletions
|
|
@ -338,9 +338,8 @@ impl Renderer<'_> {
|
|||
bounds: Option<&Rect>,
|
||||
) {
|
||||
let surface = &xdg.surface;
|
||||
if let Some(geo) = xdg.geometry() {
|
||||
(x, y) = geo.translate(x, y);
|
||||
}
|
||||
let geo = xdg.geometry();
|
||||
(x, y) = geo.translate(x, y);
|
||||
self.render_surface(surface, x, y, bounds);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue