Merge pull request #387 from mahkoh/jorth/mpv-fullscreen
xdg-toplevel: apply fullscreen state after mapping tiled window
This commit is contained in:
commit
2a5fa4cd1e
2 changed files with 10 additions and 0 deletions
|
|
@ -282,6 +282,9 @@ impl Xwindow {
|
||||||
}
|
}
|
||||||
Change::Map => {
|
Change::Map => {
|
||||||
self.data.state.map_tiled(self.clone());
|
self.data.state.map_tiled(self.clone());
|
||||||
|
if self.data.info.fullscreen.get() {
|
||||||
|
self.clone().tl_set_fullscreen(true);
|
||||||
|
}
|
||||||
self.data.title_changed();
|
self.data.title_changed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -376,6 +376,13 @@ impl XdgToplevel {
|
||||||
|
|
||||||
fn map_tiled(self: &Rc<Self>) {
|
fn map_tiled(self: &Rc<Self>) {
|
||||||
self.state.map_tiled(self.clone());
|
self.state.map_tiled(self.clone());
|
||||||
|
let fullscreen = self.states.borrow().contains(&STATE_FULLSCREEN);
|
||||||
|
if fullscreen {
|
||||||
|
if let Some(ws) = self.xdg.workspace.get() {
|
||||||
|
self.toplevel_data
|
||||||
|
.set_fullscreen2(&self.state, self.clone(), &ws);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn prepare_toplevel_drag(&self) {
|
pub fn prepare_toplevel_drag(&self) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue