diff options
author | kotontrion <[email protected]> | 2024-12-10 16:09:18 +0100 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-12-10 16:09:18 +0100 |
commit | 64150c7739049e3cc9b6b931eba58a635cbc24df (patch) | |
tree | e70543c84ece9bd2c6d23397bbda7ed52809f73d /lib/tray | |
parent | 361fe5d1937bf2220e7e35a7e26fbd2a6b0a2d83 (diff) |
tray: use highest res pixmap available
Diffstat (limited to 'lib/tray')
-rw-r--r-- | lib/tray/trayItem.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tray/trayItem.vala b/lib/tray/trayItem.vala index d1de0c3..14a2ba7 100644 --- a/lib/tray/trayItem.vala +++ b/lib/tray/trayItem.vala @@ -371,6 +371,12 @@ public class TrayItem : Object { return null; Pixmap pixmap = pixmaps[0]; + + for(int i = 0; i < pixmaps.length; i++){ + if(pixmap.width < pixmaps[i].width) + pixmap = pixmaps[i]; + }; + uint8[] image_data = pixmap.bytes.copy(); for (int i = 0; i < pixmap.width * pixmap.height * 4; i += 4) { |