File patch-for-the-patch.patch of Package gnome-shell-xrdesktop

diff --git a/src/shell-vr-mirror.c b/src/shell-vr-mirror.c
index 618cde5a2..e05b1e503 100644
--- a/src/shell-vr-mirror.c
+++ b/src/shell-vr-mirror.c
@@ -1007,7 +1007,7 @@ _upload_gl_external_memory (ShellVRMirror     *self,
           .y = (uint32_t) rect->height,
         }
       };
-      xrd_window_set_and_submit_texture (xrd_win, texture, &xrd_rect);
+      xrd_window_set_and_submit_texture_with_rect (xrd_win, texture, &xrd_rect);
     }
 
   g3k_render_unlock ();
@@ -1082,7 +1082,7 @@ _upload_raw_cairo (ShellVRMirror     *self,
         }
       };
 
-      xrd_window_set_and_submit_texture (xrd_win, texture, &xrd_rect);
+      xrd_window_set_and_submit_texture_with_rect (xrd_win, texture, &xrd_rect);
     }
   else
     {
@@ -1194,7 +1194,7 @@ _apply_desktop_position (MetaWindow *meta_win,
   graphene_matrix_t transform;
   graphene_matrix_init_translate (&transform, &point);
 
-  g3k_object_set_global_transform (G3K_OBJECT (xrd_win), &transform);
+  g3k_object_set_transformation (G3K_OBJECT (xrd_win), &transform);
   xrd_window_save_reset_transformation (xrd_win);
 }
 
@@ -1469,12 +1469,11 @@ shell_vr_mirror_map_actor (ShellVRMirror   *self,
 
   float width_meters = (float)rect.width / (float) SHELL_VR_PIXELS_PER_METER;
 
-  XrdWindow *xrd_win = xrd_window_new (g3k, title, shell_win, rect.width,
+  XrdWindow *xrd_win = xrd_window_new_from_native (g3k, title, shell_win, rect.width,
                                        rect.height, width_meters);
 
   gboolean draggable = !(is_child && meta_parent != NULL && xrd_parent != NULL);
-  xrd_shell_add_window (self->client, xrd_win, G3K_OBJECT (xrd_parent),
-                        draggable, meta_win);
+  xrd_shell_add_window (self->client, xrd_win, draggable, meta_win);
 
   if (is_child && !draggable)
     {
@@ -1486,11 +1485,11 @@ shell_vr_mirror_map_actor (ShellVRMirror   *self,
         .y = offset.y,
         .z = 0.1
       };
-      struct G3kPose offset_pose = g3k_pose_create (&offset_point, NULL);
+      //struct G3kPose offset_pose = g3k_pose_create (&offset_point, NULL);
 
-      g3k_object_set_local_pose (G3K_OBJECT (xrd_win), &offset_pose);
+      //g3k_object_set_local_pose (G3K_OBJECT (xrd_win), &offset_pose);
 
-      xrd_window_add_child (xrd_parent, xrd_win);
+      xrd_window_add_child (xrd_parent, xrd_win, &offset);
     }
   else if (is_child && xrd_parent == NULL)
     g_warning ("Can't add window '%s' as child. No parent candidate!\n", title);
openSUSE Build Service is sponsored by