diff --git a/net-misc/lagrange/lagrange-1.6.1.recipe b/net-misc/lagrange/lagrange-1.6.2.recipe similarity index 96% rename from net-misc/lagrange/lagrange-1.6.1.recipe rename to net-misc/lagrange/lagrange-1.6.2.recipe index 574496da8..29196aad9 100644 --- a/net-misc/lagrange/lagrange-1.6.1.recipe +++ b/net-misc/lagrange/lagrange-1.6.2.recipe @@ -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" diff --git a/net-misc/lagrange/patches/lagrange-1.6.1.patchset b/net-misc/lagrange/patches/lagrange-1.6.1.patchset deleted file mode 100644 index de966b4dc..000000000 --- a/net-misc/lagrange/patches/lagrange-1.6.1.patchset +++ /dev/null @@ -1,22 +0,0 @@ -From faa14165fcf1e022820a648ea0455b52d9da4f48 Mon Sep 17 00:00:00 2001 -From: Nikolay Korotkiy -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 - diff --git a/net-misc/lagrange/patches/lagrange-1.6.2.patchset b/net-misc/lagrange/patches/lagrange-1.6.2.patchset new file mode 100644 index 000000000..8d55bb974 --- /dev/null +++ b/net-misc/lagrange/patches/lagrange-1.6.2.patchset @@ -0,0 +1,45 @@ +From bddf3a7d4c9527dd63ca5af943f636ff04e7102c Mon Sep 17 00:00:00 2001 +From: Nikolay Korotkiy +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 +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 +