anvil: fix fullscreen window popups
popups are no longer drawn as part of the window.
we have to explicitely draw them for full screen windows.
use smithay::{
backend::renderer::{Frame, ImportAll, Renderer},
desktop::{
- draw_window,
+ draw_window, draw_window_popups,
space::{RenderElement, RenderError, Space},
},
utils::{Logical, Rectangle},
@@ -53,6 +53,18 @@ where
)],
log,
)?;
+ draw_window_popups(
+ renderer,
+ frame,
+ &window,
+ scale,
+ (0, 0),
+ &[Rectangle::from_loc_and_size(
+ (0, 0),
+ mode.size.to_f64().to_logical(scale).to_i32_round(),
+ )],
+ log,
+ )?;
for elem in elements {
let geo = elem.geometry();
let location = geo.loc - output_geo.loc;
