[Debian-on-mobile-maintainers] [Git][DebianOnMobile-team/phoc][debian/master] 10 commits: NEWS: Fix typo

Guido Günther (@agx) gitlab at salsa.debian.org
Tue Jul 4 11:56:20 BST 2023



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


Commits:
f707185a by Guido Günther at 2023-05-31T10:21:13+02:00
NEWS: Fix typo

- - - - -
d668eb5f by Guido Günther at 2023-06-05T14:14:29+02:00
output: Log when we render a cutout

This makes it easy from the logs to see if it's enabled.

- - - - -
3ba5b79d by Guido Günther at 2023-06-05T14:14:30+02:00
output: Render cutouts with WL_OUTPUT_TRANSFORM correctly

- - - - -
d118d461 by Guido Günther at 2023-06-23T12:03:00+00:00
Merge branch 'cutout' into 'main'

Fix cutout rendering in landsacpe

See merge request World/Phosh/phoc!457
- - - - -
1d444f7d by Guido Günther at 2023-07-02T17:33:37+02:00
Document changes and release 0.29.0

Part-of: <https://gitlab.gnome.org/World/Phosh/phoc/-/merge_requests/459>

- - - - -
e2848b26 by Marge Bot at 2023-07-04T10:22:33+00:00
Merge branch 'rel-0.29.0' into 'main'

Document changes and release 0.29.0

See merge request World/Phosh/phoc!459
- - - - -
8709feb8 by Guido Günther at 2023-07-04T12:41:45+02:00
New upstream version 0.29.0+ds
- - - - -
c3438344 by Guido Günther at 2023-07-04T12:41:53+02:00
Update upstream source from tag 'upstream/0.29.0+ds'

Update to upstream version '0.29.0+ds'
with Debian dir 9b9019417f9967deb124bb64c4a333b2b46002a4
- - - - -
c46c76c9 by Guido Günther at 2023-07-04T12:41:53+02:00
New upstream release

- - - - -
66914ebc by Guido Günther at 2023-07-04T12:46:42+02:00
Document changes and release 0.29.0+ds-1

- - - - -


4 changed files:

- NEWS
- debian/changelog
- meson.build
- src/output.c


Changes:

=====================================
NEWS
=====================================
@@ -1,7 +1,14 @@
+phoc 0.29.0
+-----------
+Released July 2023
+* Fix cutout rendering in landscape mode
+* Contributors:
+    * Guido Günther
+
 phoc 0.28.0
 -----------
 Released Mai 2023
-* Support layer shell transpareancy and add protocol bits for this
+* Support layer shell transparency and add protocol bits for this
 * Handle <super> key
 * Properly reveal OSK for fullscreen surfaces too
 * Smooth mapping of new toplevels when not in auto-maximize mode


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+phoc (0.29.0+ds-1) unstable; urgency=medium
+
+  * New upstream release
+
+ -- Guido Günther <agx at sigxcpu.org>  Tue, 04 Jul 2023 12:45:02 +0200
+
 phoc (0.28.0+ds-2) unstable; urgency=medium
 
   * Upload to unstable


=====================================
meson.build
=====================================
@@ -1,5 +1,5 @@
 project('phoc', 'c',
-          version: '0.28.0',
+          version: '0.29.0',
           license: 'GPLv3+',
     meson_version: '>= 0.56.0',
   default_options: [


=====================================
src/output.c
=====================================
@@ -298,12 +298,17 @@ render_cutouts (PhocRenderer *renderer, PhocOutput *self)
   if (priv->cutouts_texture) {
     float matrix[9];
     struct wlr_box box;
+    struct wlr_renderer *wlr_renderer = phoc_renderer_get_wlr_renderer (renderer);
     struct wlr_texture *texture = priv->cutouts_texture;
+    enum wl_output_transform transform = wlr_output_transform_invert (self->wlr_output->transform);
 
-    box = (struct wlr_box){ 0, 0, texture->width, texture->height };
-    wlr_matrix_project_box(matrix, &box, WL_OUTPUT_TRANSFORM_NORMAL,
-                           0, wlr_output->transform_matrix);
-    wlr_render_texture_with_matrix (phoc_renderer_get_wlr_renderer (renderer),  texture, matrix, 1.0);
+    if (transform % 2 == 0) /* 0, 180 */
+      box = (struct wlr_box){ 0, 0, texture->width, texture->height };
+    else /* 90, 270 */
+      box = (struct wlr_box){ 0, 0, texture->height, texture->width };
+
+    wlr_matrix_project_box (matrix, &box, transform, 0, wlr_output->transform_matrix);
+    wlr_render_texture_with_matrix (wlr_renderer, texture, matrix, 1.0);
   }
 }
 
@@ -567,6 +572,7 @@ phoc_output_initable_init (GInitable    *initable,
 
     priv->cutouts = phoc_cutouts_overlay_new (phoc_server_get_compatibles (server));
     if (priv->cutouts) {
+      g_message ("Adding cutouts overlay");
       priv->cutouts_texture = phoc_cutouts_overlay_get_cutouts_texture (priv->cutouts, self);
       priv->render_cutouts_id =  g_signal_connect (renderer, "render-end",
                                                    G_CALLBACK (render_cutouts),



View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/phoc/-/compare/fa09f4383018f795b7747b703bd31f817edb870b...66914ebcbbecf0683e8e52562dc115743def1fac

-- 
View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/phoc/-/compare/fa09f4383018f795b7747b703bd31f817edb870b...66914ebcbbecf0683e8e52562dc115743def1fac
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/20230704/456ae4fc/attachment-0001.htm>


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