shell: Add comments explaining pre-set fullscreen before unmap
This commit is contained in:
parent
7f33014710
commit
60ecf70910
1 changed files with 6 additions and 0 deletions
|
|
@ -4687,6 +4687,9 @@ impl Shell {
|
|||
stack.remove_window(&surface);
|
||||
surface
|
||||
} else {
|
||||
// Must be set before `map_internal`/`unmap` below, as both may call
|
||||
// intermediate `configure()`, which would send a configure event without the
|
||||
// fullscreen state, causing clients like Chromium to cancel the transition.
|
||||
mapped.set_fullscreen(true);
|
||||
|
||||
if let Some(state) = mapped.maximized_state.lock().unwrap().take() {
|
||||
|
|
@ -4731,6 +4734,9 @@ impl Shell {
|
|||
return None;
|
||||
}
|
||||
|
||||
// Must be set before `unmap_surface()`.
|
||||
// `Workspace::unmap_surface` may call intermediate `configure()` internally, which would send
|
||||
// a configure event without the fullscreen state, causing clients like Chromium to cancel the transition.
|
||||
mapped.set_fullscreen(true);
|
||||
|
||||
let from = workspace.element_geometry(&mapped).unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue