[mutter] frames: Fix window-type/frame-type mix-up
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] frames: Fix window-type/frame-type mix-up
- Date: Tue, 13 Jan 2015 17:14:44 +0000 (UTC)
commit f71315eb1e52d40fd3aa291f05ac09aaf6bbd8b0
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jan 13 18:09:20 2015 +0100
frames: Fix window-type/frame-type mix-up
Commit 7e66d2a484e4b2 killed off META_CORE_GET_FRAME_TYPE, but got
the replacement wrong - MetaWindowType is an enum like MetaFrameType,
but the two are not interchangeable.
https://bugzilla.gnome.org/show_bug.cgi?id=742841
src/ui/frames.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index b277b63..9908544 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -424,7 +424,7 @@ meta_ui_frame_calc_geometry (MetaUIFrame *frame,
MetaWindowX11Private *priv = window_x11->priv;
flags = meta_frame_get_flags (frame->meta_window->frame);
- type = meta_window_get_window_type (frame->meta_window);
+ type = meta_window_get_frame_type (frame->meta_window);
meta_ui_frame_ensure_layout (frame, type);
@@ -585,7 +585,7 @@ meta_ui_frame_get_borders (MetaUIFrame *frame,
MetaFrameType type;
flags = meta_frame_get_flags (frame->meta_window->frame);
- type = meta_window_get_window_type (frame->meta_window);
+ type = meta_window_get_frame_type (frame->meta_window);
g_return_if_fail (type < META_FRAME_TYPE_LAST);
@@ -1407,7 +1407,7 @@ get_visible_frame_border_region (MetaUIFrame *frame)
MetaRectangle frame_rect = frame->meta_window->rect;
flags = meta_frame_get_flags (frame->meta_window->frame);
- type = meta_window_get_window_type (frame->meta_window);
+ type = meta_window_get_frame_type (frame->meta_window);
meta_theme_get_frame_borders (meta_theme_get_default (), frame->style_info,
type, frame->text_height, flags,
@@ -1577,7 +1577,7 @@ meta_ui_frame_paint (MetaUIFrame *frame,
mini_icon = frame->meta_window->mini_icon;
flags = meta_frame_get_flags (frame->meta_window->frame);
- type = meta_window_get_window_type (frame->meta_window);
+ type = meta_window_get_frame_type (frame->meta_window);
meta_ui_frame_ensure_layout (frame, type);
@@ -1753,7 +1753,7 @@ get_control (MetaUIFrame *frame, int x, int y)
return META_FRAME_CONTROL_APPMENU;
flags = meta_frame_get_flags (frame->meta_window->frame);
- type = meta_window_get_window_type (frame->meta_window);
+ type = meta_window_get_frame_type (frame->meta_window);
has_north_resize = (type != META_FRAME_TYPE_ATTACHED);
has_vert = (flags & META_FRAME_ALLOWS_VERTICAL_RESIZE) != 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]