lagrange: bump to 1.6.2 (#6117)

This commit is contained in:
Nikolay Korotkiy
2021-08-08 08:45:47 +03:00
committed by GitHub
parent 86f2212ce8
commit 870a81bec2
3 changed files with 46 additions and 23 deletions

View File

@@ -8,7 +8,7 @@ COPYRIGHT="2020-2021 Jaakko Keränen"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://github.com/skyjake/lagrange/releases/download/v$portVersion/lagrange-$portVersion.tar.gz"
CHECKSUM_SHA256="890b213b4ff8af28fe2608506a88c86fa12184d182d906c56a8e44986e425753"
CHECKSUM_SHA256="b67b0c0e95c221f5afcd0f4d81c1130401adbbdfc802761bbf012e478b720767"
SOURCE_DIR="lagrange-$portVersion"
PATCHES="lagrange-$portVersion.patchset"
ADDITIONAL_FILES="lagrange.rdef.in"

View File

@@ -1,22 +0,0 @@
From faa14165fcf1e022820a648ea0455b52d9da4f48 Mon Sep 17 00:00:00 2001
From: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 20 Apr 2021 22:59:30 +0300
Subject: Expose main window unconditionaly.
See https://codeberg.org/skyjake/lagrange/pulls/1
diff --git a/src/ui/window.c b/src/ui/window.c
index a363358..c065922 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1835,6 +1835,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) {
SDL_Event event = *ev;
if (event.type == SDL_USEREVENT && isCommand_UserEvent(ev, "window.unfreeze")) {
d->isDrawFrozen = iFalse;
+ d->isExposed = iTrue;
if (SDL_GetWindowFlags(d->win) & SDL_WINDOW_HIDDEN) {
SDL_ShowWindow(d->win);
}
--
2.30.2

View File

@@ -0,0 +1,45 @@
From bddf3a7d4c9527dd63ca5af943f636ff04e7102c Mon Sep 17 00:00:00 2001
From: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 20 Apr 2021 22:59:30 +0300
Subject: Expose main window unconditionaly.
See https://codeberg.org/skyjake/lagrange/pulls/1
diff --git a/src/ui/window.c b/src/ui/window.c
index b8ed210..487710c 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -824,6 +824,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) {
SDL_Event event = *ev;
if (event.type == SDL_USEREVENT && isCommand_UserEvent(ev, "window.unfreeze")) {
d->isDrawFrozen = iFalse;
+ d->isExposed = iTrue;
if (SDL_GetWindowFlags(d->win) & SDL_WINDOW_HIDDEN) {
SDL_ShowWindow(d->win);
}
--
2.30.2
From e41d58c912665ba9e3871ce6f0e42c057988ca85 Mon Sep 17 00:00:00 2001
From: Nikolay Korotkiy <sikmir@gmail.com>
Date: Sun, 8 Aug 2021 02:48:14 +0300
Subject: Fix freeze on resizing
diff --git a/src/app.c b/src/app.c
index 8318eee..82194df 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1352,7 +1352,7 @@ static int run_App_(iApp *d) {
d->isRunning = iTrue;
SDL_EventState(SDL_DROPFILE, SDL_ENABLE); /* open files via drag'n'drop */
#if defined (iPlatformDesktop)
- SDL_AddEventWatch(resizeWatcher_, d); /* redraw window during resizing */
+ //SDL_AddEventWatch(resizeWatcher_, d); /* redraw window during resizing */
#endif
while (d->isRunning) {
dispatchCommands_Periodic(&d->periodic);
--
2.30.2