Skip to content

Commit

Permalink
Fix implicit function declaration and coords (they are parent relative)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Nov 23, 2024
1 parent 7626a96 commit 0ae64b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Widgets/WindowClone.vala
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public class Gala.WindowClone : Clutter.Actor {
close_button.allocate (close_button_alloc);

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

Expand Down
7 changes: 4 additions & 3 deletions vapi/mutter-clutter.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -4763,6 +4763,7 @@ namespace Clutter {
public unowned Clutter.Actor? get_previous_sibling ();
public bool get_reactive ();
#if HAS_MUTTER45
[ CCode (cheader_filename = "clutter/clutter.h")]
public Graphene.Matrix get_relative_transformation_matrix (Clutter.Actor? ancestor);
#endif
public Clutter.RequestMode get_request_mode ();
Expand Down Expand Up @@ -6807,7 +6808,7 @@ namespace Clutter {
#else
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);
#endif
#if HAS_MUTTER45
#if HAS_MUTTER45
[NoAccessorMethod]
public bool is_grabbed { get; }
#endif
Expand Down Expand Up @@ -6865,7 +6866,7 @@ namespace Clutter {
public void destroy ();
#endif
public unowned Cogl.Framebuffer get_framebuffer ();
#if HAS_MUTTER45
#if HAS_MUTTER45
public void get_layout (Mtk.Rectangle rect);
#else
public void get_layout (Cairo.RectangleInt rect);
Expand Down Expand Up @@ -6902,7 +6903,7 @@ namespace Clutter {
public virtual void setup_offscreen_blit_pipeline (Cogl.Pipeline pipeline);
#endif
[NoWrapper]
#if HAS_MUTTER45
#if HAS_MUTTER45
public virtual void transform_rect_to_onscreen (Mtk.Rectangle src_rect, int dst_width, int dst_height, Mtk.Rectangle dst_rect);
#else
public virtual void transform_rect_to_onscreen (Cairo.RectangleInt src_rect, int dst_width, int dst_height, Cairo.RectangleInt dst_rect);
Expand Down

0 comments on commit 0ae64b1

Please sign in to comment.