mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-02-05 20:46:27 +01:00
Close layer surfaces on output removal
Fixes mako not making new notifications if one is sent during sleep
This commit is contained in:
parent
b8098f4d45
commit
4eb29c49dc
1 changed files with 10 additions and 1 deletions
|
@ -51,7 +51,10 @@ use smithay::{
|
|||
vulkan::{self, version::Version, PhysicalDevice},
|
||||
SwapBuffersError,
|
||||
},
|
||||
desktop::utils::{send_frames_surface_tree, OutputPresentationFeedback},
|
||||
desktop::{
|
||||
layer_map_for_output,
|
||||
utils::{send_frames_surface_tree, OutputPresentationFeedback},
|
||||
},
|
||||
input::pointer::CursorImageStatus,
|
||||
output::{Output, PhysicalProperties, Subpixel},
|
||||
reexports::{
|
||||
|
@ -1181,6 +1184,12 @@ impl Udev {
|
|||
scale: Some(output.current_scale()),
|
||||
},
|
||||
);
|
||||
|
||||
// TODO: extract into a `remove_output` function and unify with dummy backend
|
||||
for layer in layer_map_for_output(&output).layers() {
|
||||
layer.layer_surface().send_close();
|
||||
}
|
||||
|
||||
pinnacle.space.unmap_output(&output);
|
||||
pinnacle.gamma_control_manager_state.output_removed(&output);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue