Wayland: limit copied pixels when window update is a region - cont'd

Simpler Fl_Wayland_Window_Driver::flush_overlay() is enough.
This commit is contained in:
ManoloFLTK 2023-04-12 15:01:35 +02:00
parent 2d263a830a
commit e6c9deb4a4

View File

@ -198,9 +198,6 @@ void Fl_Wayland_Window_Driver::flush_overlay()
fl_copy_offscreen(0, 0, oWindow->w(), oWindow->h(), other_xid, 0, 0);
}
if (overlay() == oWindow) oWindow->draw_overlay();
struct wld_window * xid = fl_wl_xid(pWindow);
int s = wld_scale();
wl_surface_damage_buffer(xid->wl_surface, 0, 0, pWindow->w() * s, pWindow->h() * s);
}