summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-12-10 17:17:17 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-12-10 17:17:17 +0800
commit495dee57662059ede2cefc7c6ac24fc0b26533ff (patch)
tree7604aa5c105eed2de2b8ab7899ea3f7a503932b4 /src
parentdebc4933f8075dc134adaefba8d2f12b8314db17 (diff)
downloadunity-window-decorator-495dee57662059ede2cefc7c6ac24fc0b26533ff.tar.gz
unity-window-decorator-495dee57662059ede2cefc7c6ac24fc0b26533ff.tar.bz2
Fix typo and ordering
Diffstat (limited to 'src')
-rw-r--r--src/metacity.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/metacity.c b/src/metacity.c
index 8e9e556..a971a84 100644
--- a/src/metacity.c
+++ b/src/metacity.c
@@ -1757,9 +1757,10 @@ meta_update_shadow (gint shadow_type)
draw_border_shape,
0);
break;
- case SHADOW_TYPE_INACTIVE_NORMAL:
+ case SHADOW_TYPE_ACTIVE_MAX:
- return cairo_update_shadow (SHADOW_TYPE_INACTIVE_NORMAL);
+ frame_flags |= META_FRAME_MAXIMIZED;
+ frame_flags |= META_FRAME_HAS_FOCUS;
frame_style = meta_theme_get_frame_style (theme,
META_FRAME_TYPE_NORMAL,
@@ -1771,6 +1772,7 @@ meta_update_shadow (gint shadow_type)
if (!shadow_properties)
return NULL;
+
opt_shadow.shadow_radius = shadow_properties->unity_shadow_radius;
opt_shadow.shadow_offset_x = shadow_properties->unity_shadow_x_offset;
opt_shadow.shadow_offset_y = shadow_properties->unity_shadow_y_offset;
@@ -1779,26 +1781,20 @@ meta_update_shadow (gint shadow_type)
return decor_shadow_create (xdisplay,
gdk_x11_screen_get_xscreen (screen),
1, 1,
- _win_extents.left,
- _win_extents.right,
- _win_extents.top + titlebar_height,
- _win_extents.bottom,
- _win_extents.left -
- TRANSLUCENT_CORNER_SIZE,
- _win_extents.right -
- TRANSLUCENT_CORNER_SIZE,
- _win_extents.top + titlebar_height -
- TRANSLUCENT_CORNER_SIZE,
- _win_extents.bottom -
+ _max_win_extents.left,
+ _max_win_extents.right,
+ _max_win_extents.top + max_titlebar_height,
+ _max_win_extents.bottom,
+ _max_win_extents.left - TRANSLUCENT_CORNER_SIZE,
+ _max_win_extents.right - TRANSLUCENT_CORNER_SIZE,
+ _max_win_extents.top + max_titlebar_height -
TRANSLUCENT_CORNER_SIZE,
+ _max_win_extents.bottom - TRANSLUCENT_CORNER_SIZE,
&opt_shadow,
- &window_inactive_context,
+ &max_window_active_context,
draw_border_shape,
- 0);
- case SHADOW_TYPE_ACTIVE_MAX:
-
- frame_flags |= META_FRAME_MAXIMIZED;
- frame_flags |= META_FRAME_HAS_FOCUS;
+ (void *) 1);
+ case SHADOW_TYPE_INACTIVE_NORMAL:
frame_style = meta_theme_get_frame_style (theme,
META_FRAME_TYPE_NORMAL,
@@ -1819,19 +1815,23 @@ meta_update_shadow (gint shadow_type)
return decor_shadow_create (xdisplay,
gdk_x11_screen_get_xscreen (screen),
1, 1,
- _max_win_extents.left,
- _max_win_extents.right,
- _max_win_extents.top + max_titlebar_height,
- _max_win_extents.bottom,
- _max_win_extents.left - TRANSLUCENT_CORNER_SIZE,
- _max_win_extents.right - TRANSLUCENT_CORNER_SIZE,
- _max_win_extents.top + max_titlebar_height -
+ _win_extents.left,
+ _win_extents.right,
+ _win_extents.top + titlebar_height,
+ _win_extents.bottom,
+ _win_extents.left -
+ TRANSLUCENT_CORNER_SIZE,
+ _win_extents.right -
+ TRANSLUCENT_CORNER_SIZE,
+ _win_extents.top + titlebar_height -
+ TRANSLUCENT_CORNER_SIZE,
+ _win_extents.bottom -
TRANSLUCENT_CORNER_SIZE,
- _max_win_extents.bottom - TRANSLUCENT_CORNER_SIZE,
&opt_shadow,
- &max_window_active_context,
+ &window_inactive_context,
draw_border_shape,
- (void *) 1);
+ 0);
+
case SHADOW_TYPE_INACTIVE_MAX:
frame_flags |= META_FRAME_MAXIMIZED;