[Debian-on-mobile-maintainers] [Git][DebianOnMobile-team/phoc][debian/latest] 2 commits: layer-shell: Mark layer cache dirty when OSK changes layers

Guido Günther (@agx) gitlab at salsa.debian.org
Mon Jul 8 21:53:37 BST 2024



Guido Günther pushed to branch debian/latest at Debian On Mobile / phoc


Commits:
4eb37a81 by Guido Günther at 2024-07-08T22:41:04+02:00
layer-shell: Mark layer cache dirty when OSK changes layers

Closes: #1075857
Thanks: Andrey Skvortsov for the report and testing the fix

- - - - -
1392971d by Guido Günther at 2024-07-08T22:42:33+02:00
Document changes and release 0.40.0+ds-2

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/layer-shell-Mark-layer-cache-dirty-when-OSK-changes-layer.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+phoc (0.40.0+ds-2) unstable; urgency=medium
+
+  * layer-shell: Mark layer cache dirty when OSK changes layers.
+    Thanks to Andrey Skvortsov for the report and testing the fix
+    (Closes: #1075857)
+
+ -- Guido Günther <agx at sigxcpu.org>  Mon, 08 Jul 2024 22:42:29 +0200
+
 phoc (0.40.0+ds-1) unstable; urgency=medium
 
   * New upstream release


=====================================
debian/patches/layer-shell-Mark-layer-cache-dirty-when-OSK-changes-layer.patch
=====================================
@@ -0,0 +1,49 @@
+From: =?utf-8?q?Guido_G=C3=BCnther?= <agx at sigxcpu.org>
+Date: Sun, 7 Jul 2024 07:09:00 +0200
+Subject: layer-shell: Mark layer cache dirty when OSK changes layers
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075857
+Fixes: 109b0afe9 ("output: Cache layer surface ordering")
+
+Signed-off-by: Guido Günther <agx at sigxcpu.org>
+Tested-by: Andrey Skvortsov <andrej.skvortzov at gmail.com>
+Part-of: <https://gitlab.gnome.org/World/Phosh/phoc/-/merge_requests/574>
+(cherry picked from commit 8d0f637c8919410cfa21a43a7c65b507cf930797)
+---
+ src/layer_shell.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/src/layer_shell.c b/src/layer_shell.c
+index 9f2adbb..b67a5ca 100644
+--- a/src/layer_shell.c
++++ b/src/layer_shell.c
+@@ -946,6 +946,7 @@ phoc_layer_shell_update_osk (PhocOutput *output, gboolean arrange)
+   PhocLayerSurface *osk;
+   GSList *seats = phoc_input_get_seats (input);
+   gboolean force_overlay = FALSE;
++  enum zwlr_layer_shell_v1_layer old_layer;
+ 
+   g_assert (PHOC_IS_OUTPUT (output));
+ 
+@@ -967,12 +968,18 @@ phoc_layer_shell_update_osk (PhocOutput *output, gboolean arrange)
+     }
+   }
+ 
++  old_layer = osk->layer;
+   if (force_overlay && osk->layer != ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY)
+     osk->layer = ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY;
+ 
+   if (!force_overlay && osk->layer != osk->layer_surface->pending.layer)
+     osk->layer = osk->layer_surface->pending.layer;
+ 
++  if (old_layer != osk->layer) {
++    phoc_output_set_layer_dirty (output, old_layer);
++    phoc_output_set_layer_dirty (output, osk->layer);
++  }
++
+   if (force_overlay && arrange)
+     phoc_layer_shell_arrange (output);
+ }


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+layer-shell-Mark-layer-cache-dirty-when-OSK-changes-layer.patch



View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/phoc/-/compare/d31e952d5eb7547ca6c965c1b3e208f1ee2f54cc...1392971d9fa94a0884e6cfb8bdb2421234ef4a80

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/phoc/-/compare/d31e952d5eb7547ca6c965c1b3e208f1ee2f54cc...1392971d9fa94a0884e6cfb8bdb2421234ef4a80
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20240708/bff4c4f4/attachment-0001.htm>


More information about the Debian-on-mobile-maintainers mailing list