<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/80aee331c8a613e100431fb7825a508d71864a0e">https://github.com/macports/macports-ports/commit/80aee331c8a613e100431fb7825a508d71864a0e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 80aee331c8a gtk2: fix sluggish screen updates for 10.14 and 10.15 * Performance patches apply to 10.14 and 10.15 too, in addition to Big Sur and Monterey Fixes: https://trac.macports.org/ticket/59481
</span>80aee331c8a is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 80aee331c8a613e100431fb7825a508d71864a0e
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Sat May 7 14:50:57 2022 -0400

<span style='display:block; white-space:pre;color:#404040;'>    gtk2: fix sluggish screen updates for 10.14 and 10.15
</span><span style='display:block; white-space:pre;color:#404040;'>    * Performance patches apply to 10.14 and 10.15 too, in addition to Big Sur and Monterey
</span><span style='display:block; white-space:pre;color:#404040;'>    Fixes: https://trac.macports.org/ticket/59481
</span>---
 gnome/gtk2/Portfile                                            | 2 +-
 gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p1.diff | 4 ++--
 gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p2.diff | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtk2/Portfile b/gnome/gtk2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 962957e855a..f6ca050f91f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gtk2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtk2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,7 +9,7 @@ name                gtk2
</span> conflicts           gtk2-devel
 set my_name         gtk2
 version             2.24.33
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> epoch               0
 
 set proj_name       gtk+
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p1.diff b/gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p1.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 3dc9ead9122..368466f527b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p1.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p1.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -39,7 +39,7 @@ diff -Naur a/gdk/quartz/gdkdrawable-quartz.c b/gdk/quartz/gdkdrawable-quartz.c
</span> +           * trigger a drawRect: call for the entire window.  To return the
 +           * lost performance, do not use the locking API in MacOS 11+
 +           */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+          if(gdk_quartz_osx_version() < GDK_OSX_BIG_SUR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++          if(gdk_quartz_osx_version() < GDK_OSX_MOJAVE)
</span> +              [window_impl->view unlockFocus];
          }
      }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,7 +58,7 @@ diff -Naur a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
</span> +       * trigger a drawRect: call for the entire window.  To return the
 +       * lost performance, do not use the locking API in MacOS 11+
 +       */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+      if(gdk_quartz_osx_version() < GDK_OSX_BIG_SUR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++      if(gdk_quartz_osx_version() < GDK_OSX_MOJAVE)
</span> +        {
 +          if (![window_impl->view lockFocusIfCanDraw])
 +            return NULL;
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p2.diff b/gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p2.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index e755468d694..c724d027dbd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p2.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtk2/files/patch-gimp-issue-5989-bigsur-perf-gtk-p2.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,7 +32,7 @@ diff -Naur a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
</span> -  NSDisableScreenUpdates ();
 +
 +  /* This API was deprecated in MacOS 10.14 */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+  if (gdk_quartz_osx_version() < GDK_OSX_BIG_SUR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  if (gdk_quartz_osx_version() < GDK_OSX_MOJAVE)
</span> +    NSDisableScreenUpdates ();
  }
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,7 +59,7 @@ diff -Naur a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
</span> 
 -  NSEnableScreenUpdates ();
 +  /* This API was deprecated in MacOS 10.14 */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+  if (gdk_quartz_osx_version() < GDK_OSX_BIG_SUR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  if (gdk_quartz_osx_version() < GDK_OSX_MOJAVE)
</span> +    NSEnableScreenUpdates ();
  }
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -88,7 +88,7 @@ diff -Naur a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
</span> +     * MacOS 11.  Disabling this does not seem to have any detrimental
 +     * effects in my tests, but does cut down on processor use, so...
 +     */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+    if(gdk_quartz_osx_version() < GDK_OSX_BIG_SUR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    if(gdk_quartz_osx_version() < GDK_OSX_MOJAVE)
</span> +      gdk_window_process_all_updates ();
 +  #elif
 +    gdk_window_process_all_updates ();
</pre><pre style='margin:0'>

</pre>