Skip to content

Commit d52cdd4

Browse files
committed
Fix incorrect start position of client pixmap
The pixmap of raw_background should start at coordinates (dst_x, dst_y) = (0, 0) relative to the client's window, instead of (window->client.left, window->client.top) relative to the client's window. Signed-off-by: Wei-Hsin Yeh <[email protected]>
1 parent 3a95678 commit d52cdd4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/multi.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,8 @@ static void apps_blur(twin_screen_t *screen, int x, int y, int w, int h)
310310

311311
/* Copy the blurred background to the window */
312312
srcop.u.pixmap = scaled_background;
313-
twin_composite(window->pixmap, window->client.left, window->client.top,
314-
&srcop, 0, 0, NULL, 0, 0, TWIN_SOURCE, client_width,
315-
client_height);
313+
twin_composite(window->pixmap, 0, 0, &srcop, 0, 0, NULL, 0, 0, TWIN_SOURCE,
314+
client_width, client_height);
316315

317316
twin_pixmap_destroy(scaled_background);
318317
twin_pixmap_destroy(raw_background);

0 commit comments

Comments
 (0)