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
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue