Skip to content

Commit 0ae64b1

Browse files
committed
Fix implicit function declaration and coords (they are parent relative)
1 parent 7626a96 commit 0ae64b1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Widgets/WindowClone.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public class Gala.WindowClone : Clutter.Actor {
477477
close_button.allocate (close_button_alloc);
478478

479479
var rect = Graphene.Rect ().init (box.get_x (), box.get_y (), box.get_width (), box.get_height ());
480-
get_relative_transformation_matrix (get_stage ()).transform_rect (rect);
480+
get_parent ().get_relative_transformation_matrix (get_stage ()).transform_rect (rect);
481481
var monitor_index = display.get_monitor_index_for_rect (Mtk.Rectangle.from_graphene_rect (rect, ROUND));
482482
var monitor_scale = display.get_monitor_scale (monitor_index);
483483

vapi/mutter-clutter.vapi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4763,6 +4763,7 @@ namespace Clutter {
47634763
public unowned Clutter.Actor? get_previous_sibling ();
47644764
public bool get_reactive ();
47654765
#if HAS_MUTTER45
4766+
[ CCode (cheader_filename = "clutter/clutter.h")]
47664767
public Graphene.Matrix get_relative_transformation_matrix (Clutter.Actor? ancestor);
47674768
#endif
47684769
public Clutter.RequestMode get_request_mode ();
@@ -6807,7 +6808,7 @@ namespace Clutter {
68076808
#else
68086809
public void update_device (Clutter.InputDevice device, Clutter.EventSequence sequence, Graphene.Point point, uint32 time, Clutter.Actor new_actor, Cairo.Region region, bool emit_crossing);
68096810
#endif
6810-
#if HAS_MUTTER45
6811+
#if HAS_MUTTER45
68116812
[NoAccessorMethod]
68126813
public bool is_grabbed { get; }
68136814
#endif
@@ -6865,7 +6866,7 @@ namespace Clutter {
68656866
public void destroy ();
68666867
#endif
68676868
public unowned Cogl.Framebuffer get_framebuffer ();
6868-
#if HAS_MUTTER45
6869+
#if HAS_MUTTER45
68696870
public void get_layout (Mtk.Rectangle rect);
68706871
#else
68716872
public void get_layout (Cairo.RectangleInt rect);
@@ -6902,7 +6903,7 @@ namespace Clutter {
69026903
public virtual void setup_offscreen_blit_pipeline (Cogl.Pipeline pipeline);
69036904
#endif
69046905
[NoWrapper]
6905-
#if HAS_MUTTER45
6906+
#if HAS_MUTTER45
69066907
public virtual void transform_rect_to_onscreen (Mtk.Rectangle src_rect, int dst_width, int dst_height, Mtk.Rectangle dst_rect);
69076908
#else
69086909
public virtual void transform_rect_to_onscreen (Cairo.RectangleInt src_rect, int dst_width, int dst_height, Cairo.RectangleInt dst_rect);

0 commit comments

Comments
 (0)