diff --git a/doc/reference/meta-sections.txt b/doc/reference/meta-sections.txt index 22d435034..5952f0aac 100644 --- a/doc/reference/meta-sections.txt +++ b/doc/reference/meta-sections.txt @@ -555,7 +555,7 @@ meta_window_is_monitor_sized meta_window_is_override_redirect meta_window_is_skip_taskbar meta_window_get_rect -meta_window_get_input_rect +meta_window_get_buffer_rect meta_window_get_frame_rect meta_window_get_outer_rect meta_window_client_rect_to_frame_rect diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index f9128443e..6da79b73d 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -1152,7 +1152,7 @@ meta_window_actor_sync_actor_geometry (MetaWindowActor *self, MetaWindowActorPrivate *priv = self->priv; MetaRectangle window_rect; - meta_window_get_input_rect (priv->window, &window_rect); + meta_window_get_buffer_rect (priv->window, &window_rect); /* When running as a Wayland compositor we catch size changes when new * buffers are attached */ diff --git a/src/core/window.c b/src/core/window.c index 7b3d6c858..e1598b612 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -4036,18 +4036,21 @@ meta_window_get_session_geometry (MetaWindow *window, } /** - * meta_window_get_input_rect: + * meta_window_get_buffer_rect: * @window: a #MetaWindow * @rect: (out): pointer to an allocated #MetaRectangle * - * Gets the rectangle that bounds @window that is responsive to mouse events. - * This includes decorations - the visible portion of its border - and (if - * present) any invisible area that we make make responsive to mouse clicks in - * order to allow convenient border dragging. + * Gets the rectangle that the pixmap or buffer of @window occupies. + * + * For X11 windows, this is the server-side geometry of the toplevel + * window. + * + * For Wayland windows, this is the bounding rectangle of the attached + * buffer. */ void -meta_window_get_input_rect (const MetaWindow *window, - MetaRectangle *rect) +meta_window_get_buffer_rect (const MetaWindow *window, + MetaRectangle *rect) { if (window->frame) *rect = window->frame->rect; diff --git a/src/meta/window.h b/src/meta/window.h index 78ae8d105..6ef85df54 100644 --- a/src/meta/window.h +++ b/src/meta/window.h @@ -108,7 +108,7 @@ gboolean meta_window_appears_focused (MetaWindow *window); gboolean meta_window_is_shaded (MetaWindow *window); gboolean meta_window_is_override_redirect (MetaWindow *window); gboolean meta_window_is_skip_taskbar (MetaWindow *window); -void meta_window_get_input_rect (const MetaWindow *window, MetaRectangle *rect); +void meta_window_get_buffer_rect (const MetaWindow *window, MetaRectangle *rect); void meta_window_get_frame_rect (const MetaWindow *window, MetaRectangle *rect); void meta_window_get_outer_rect (const MetaWindow *window, MetaRectangle *rect) G_GNUC_DEPRECATED;