autocommit 2022-04-20 20:20:36 CEST
This commit is contained in:
parent
34e665cd8b
commit
dae9e52347
8 changed files with 22 additions and 13 deletions
|
|
@ -299,6 +299,7 @@ impl XdgToplevel {
|
|||
) -> Result<(), SetFullscreenError> {
|
||||
let client = &self.xdg.surface.client;
|
||||
let req: SetFullscreen = client.parse(self.deref(), parser)?;
|
||||
self.states.borrow_mut().insert(STATE_FULLSCREEN);
|
||||
'set_fullscreen: {
|
||||
let output = if req.output.is_some() {
|
||||
match client.lookup(req.output)?.global.node.get() {
|
||||
|
|
@ -636,7 +637,7 @@ impl XdgSurfaceExt for XdgToplevel {
|
|||
|
||||
impl SizedFullscreenNode for XdgToplevel {
|
||||
fn on_set_fullscreen(&self, _workspace: &Rc<WorkspaceNode>) {
|
||||
self.states.borrow_mut().insert(STATE_FULLSCREEN);
|
||||
// nothing
|
||||
}
|
||||
|
||||
fn on_unset_fullscreen(&self) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue