Skip to content

Commit c3fc56f

Browse files
author
Federico Fissore
committed
Windows: patched launch4j to reduce the delay between pollings for the main
window. Fixes #4215
1 parent 0dca80c commit c3fc56f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

build/build.xml

+2
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,8 @@
861861
<delete dir="windows/launcher/launch4j"/>
862862
<antcall target="download-${launch4j-download-unpack-target-name}" />
863863

864+
<patch patchfile="windows/launcher.timer.patch" strip="1" dir="windows/launcher/launch4j/"/>
865+
864866
<property name="launch4j.dir" value="windows/launcher/launch4j/" />
865867
<taskdef name="launch4j"
866868
classname="net.sf.launch4j.ant.Launch4jTask"

build/windows/launcher.timer.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/head_src/guihead/guihead.c b/head_src/guihead/guihead.c
2+
index f0d9935..c6599f0 100644
3+
--- a/head_src/guihead/guihead.c
4+
+++ b/head_src/guihead/guihead.c
5+
@@ -120,7 +120,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,
6+
{
7+
if (splash || stayAlive)
8+
{
9+
- if (!SetTimer (hWnd, ID_TIMER, 1000 /* 1s */, TimerProc))
10+
+ if (!SetTimer (hWnd, ID_TIMER, 100, TimerProc))
11+
{
12+
signalError();
13+
return 1;

0 commit comments

Comments
 (0)