1
0
Fork 0
forked from wry/wry

xdg-toplevel: center fullscreen surfaces with geometry smaller than output

This commit is contained in:
Julian Orth 2025-08-30 15:23:44 +02:00
parent 642eaffcff
commit 197b069c50
6 changed files with 81 additions and 26 deletions

View file

@ -247,6 +247,7 @@ impl<T: ToplevelNodeBase> ToplevelNode for T {
fn tl_mark_fullscreen(&self, fullscreen: bool) {
self.tl_data().is_fullscreen.set(fullscreen);
self.tl_mark_ancestor_fullscreen(fullscreen);
self.tl_mark_fullscreen_ext();
}
}
@ -315,6 +316,10 @@ pub trait ToplevelNodeBase: Node {
fn tl_mark_ancestor_fullscreen_ext(&self, fullscreen: bool) {
let _ = fullscreen;
}
fn tl_mark_fullscreen_ext(&self) {
// nothing
}
}
pub struct FullscreenedData {