Merge pull request #2683 from hojjatabdollahi/hojjat/fix-chrome
fix(shell): take presentation feedback from fullscreen surfaces
This commit is contained in:
commit
3b8bac8335
1 changed files with 14 additions and 0 deletions
|
|
@ -5024,6 +5024,20 @@ impl Shell {
|
||||||
let mut output_presentation_feedback = OutputPresentationFeedback::new(output);
|
let mut output_presentation_feedback = OutputPresentationFeedback::new(output);
|
||||||
|
|
||||||
if let Some(active) = self.active_space(output) {
|
if let Some(active) = self.active_space(output) {
|
||||||
|
for fs in active.get_fullscreen_surfaces() {
|
||||||
|
fs.surface.take_presentation_feedback(
|
||||||
|
&mut output_presentation_feedback,
|
||||||
|
surface_primary_scanout_output,
|
||||||
|
|surface, _| {
|
||||||
|
surface_presentation_feedback_flags_from_states(
|
||||||
|
surface,
|
||||||
|
None,
|
||||||
|
render_element_states,
|
||||||
|
)
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
active.mapped().for_each(|mapped| {
|
active.mapped().for_each(|mapped| {
|
||||||
mapped.active_window().take_presentation_feedback(
|
mapped.active_window().take_presentation_feedback(
|
||||||
&mut output_presentation_feedback,
|
&mut output_presentation_feedback,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue