From e6c9deb4a4fca8e7f0241e74ec242213628de6b6 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 12 Apr 2023 15:01:35 +0200 Subject: Wayland: limit copied pixels when window update is a region - cont'd Simpler Fl_Wayland_Window_Driver::flush_overlay() is enough. --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index 790ea7473..37d6e4842 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -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); } -- cgit v1.2.3