mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
xwayland: fix swapped width/height in _NET_WM_ICON stride calculation
Probably slipped through since most window icons are square anyway.
This commit is contained in:
parent
4beee3851f
commit
f338af1cc9
1 changed files with 2 additions and 2 deletions
|
|
@ -624,8 +624,8 @@ update_icon(struct xwayland_view *xwayland_view)
|
|||
struct wl_array buffers;
|
||||
wl_array_init(&buffers);
|
||||
for (; iter.rem; xcb_ewmh_get_wm_icon_next(&iter)) {
|
||||
size_t stride = iter.height * 4;
|
||||
uint32_t *buf = xzalloc(iter.width * stride);
|
||||
size_t stride = iter.width * 4;
|
||||
uint32_t *buf = xzalloc(iter.height * stride);
|
||||
|
||||
/* Pre-multiply alpha */
|
||||
for (uint32_t y = 0; y < iter.height; y++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue