summaryrefslogtreecommitdiff
path: root/lib/tray
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-12-10 16:09:18 +0100
committerkotontrion <[email protected]>2024-12-10 16:09:18 +0100
commit64150c7739049e3cc9b6b931eba58a635cbc24df (patch)
treee70543c84ece9bd2c6d23397bbda7ed52809f73d /lib/tray
parent361fe5d1937bf2220e7e35a7e26fbd2a6b0a2d83 (diff)
tray: use highest res pixmap available
Diffstat (limited to 'lib/tray')
-rw-r--r--lib/tray/trayItem.vala6
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) {