diff options
author | Victor Kareh <[email protected]> | 2019-05-22 11:12:24 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-16 18:12:44 +0200 |
commit | 1949834b11b508af71332ca92ddcce7a9733d1fd (patch) | |
tree | d5d84b1877e06b8daec8777fd2b36eeea4575ebd /src/core | |
parent | 5bef622c7857b7736e706a72619a03fdbe7fa7bb (diff) | |
download | marco-1949834b11b508af71332ca92ddcce7a9733d1fd.tar.bz2 marco-1949834b11b508af71332ca92ddcce7a9733d1fd.tar.xz |
frame: Add "get_corner_radiuses" chain
https://bugzilla.gnome.org/show_bug.cgi?id=628195
upstream commit:
https://gitlab.gnome.org/GNOME/metacity/commit/3994d7a0
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/frame-private.h | 7 | ||||
-rw-r--r-- | src/core/frame.c | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/core/frame-private.h b/src/core/frame-private.h index d7183149..811ac624 100644 --- a/src/core/frame-private.h +++ b/src/core/frame-private.h @@ -59,10 +59,17 @@ void meta_frame_queue_draw (MetaFrame *frame); MetaFrameFlags meta_frame_get_flags (MetaFrame *frame); +void meta_frame_get_corner_radiuses (MetaFrame *frame, + float *top_left, + float *top_right, + float *bottom_left, + float *bottom_right); + gboolean meta_frame_sync_to_window (MetaFrame *frame, int gravity, gboolean need_move, gboolean need_resize); + cairo_region_t *meta_frame_get_frame_bounds (MetaFrame *frame); void meta_frame_set_screen_cursor (MetaFrame *frame, diff --git a/src/core/frame.c b/src/core/frame.c index b6ed741e..a2da9cb9 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -338,6 +338,19 @@ update_shape (MetaFrame *frame) return FALSE; } +void +meta_frame_get_corner_radiuses (MetaFrame *frame, + float *top_left, + float *top_right, + float *bottom_left, + float *bottom_right) +{ + meta_ui_get_corner_radiuses (frame->window->screen->ui, + frame->xwindow, + top_left, top_right, + bottom_left, bottom_right); +} + gboolean meta_frame_sync_to_window (MetaFrame *frame, int resize_gravity, |