ports/deskutils/easystroke/files/patch-win.cc
Guido Falsi 72561bebe5 deskutils/easystroke: Update, take maintainership
- Move to github
- Use last upstream commit, which includes fixes not present in release
- Properly use grettext and intltool
- Install appdata file provided in upstream repository
- Fix error in desktop file [1]
- Point WWW to github page
- Import patch to fix sporadic crash [2]
- Sort plist
- Take maintainership

obtained from:	a255b2af29 [1],
		140b9cae66 [2]
2022-08-18 21:33:08 +02:00

22 lines
638 B
C++

From 140b9cae66ba874bf0994eea71210baf417a136e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kondor=20D=C3=A1niel?= <kondor.dani@gmail.com>
Date: Sat, 22 Sep 2018 22:42:06 +0800
Subject: [PATCH] fixed recurring crash when trying to render 0x0 tray icon
---
win.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win.cc b/win.cc
index da41b0e8..36746430 100644
--- win.cc
+++ win.cc
@@ -275,7 +275,7 @@ void Win::timeout() {
}
void Win::set_icon(RStroke stroke, bool invert) {
- if (!icon)
+ if (!icon || icon->get_size() <= 0)
return;
icon->set(stroke->draw(icon->get_size(), 2.0, invert));
set_timeout(10000);