summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorJoaquín Ignacio Aramendía <[email protected]>2014-06-23 21:29:30 -0300
committerJoaquín Ignacio Aramendía <[email protected]>2014-06-26 20:23:32 -0300
commit5807acda35eba4a1c7d0f515586d138a0bd95be4 (patch)
treead910d0978de2ad9ae76a5084a427b67ade6ed2d /src/core/window.c
parenta65a66d49bd0d6ec6c94b8e3ecd551cb570cec95 (diff)
downloadmarco-5807acda35eba4a1c7d0f515586d138a0bd95be4.tar.bz2
marco-5807acda35eba4a1c7d0f515586d138a0bd95be4.tar.xz
Remove all effects code for a fresh and clean start
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c66
1 files changed, 5 insertions, 61 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 74e69074..be982de3 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -1479,49 +1479,7 @@ implement_showing (MetaWindow *window,
if (!showing)
{
- gboolean on_workspace;
-
- on_workspace = meta_window_located_on_workspace (window,
- window->screen->active_workspace);
-
- /* Really this effects code should probably
- * be in meta_window_hide so the window->mapped
- * test isn't duplicated here. Anyhow, we animate
- * if we are mapped now, we are supposed to
- * be minimized, and we are on the current workspace.
- */
- if (on_workspace && window->minimized && window->mapped &&
- !meta_prefs_get_reduced_resources ())
- {
- MetaRectangle icon_rect, window_rect;
- gboolean result;
-
- /* Check if the window has an icon geometry */
- result = meta_window_get_icon_geometry (window, &icon_rect);
-
- if (!result)
- {
- /* just animate into the corner somehow - maybe
- * not a good idea...
- */
- icon_rect.x = window->screen->rect.width;
- icon_rect.y = window->screen->rect.height;
- icon_rect.width = 1;
- icon_rect.height = 1;
- }
-
- meta_window_get_outer_rect (window, &window_rect);
-
- meta_effect_run_minimize (window,
- &window_rect,
- &icon_rect,
- finish_minimize,
- window);
- }
- else
- {
- finish_minimize (window);
- }
+ meta_window_hide(window);
}
else
{
@@ -2283,24 +2241,6 @@ meta_window_show (MetaWindow *window)
XMapWindow (window->display->xdisplay, window->xwindow);
meta_error_trap_pop (window->display, FALSE);
did_show = TRUE;
-
- if (window->was_minimized)
- {
- MetaRectangle window_rect;
- MetaRectangle icon_rect;
-
- window->was_minimized = FALSE;
-
- if (meta_window_get_icon_geometry (window, &icon_rect))
- {
- meta_window_get_outer_rect (window, &window_rect);
-
- meta_effect_run_unminimize (window,
- &window_rect,
- &icon_rect,
- NULL, NULL);
- }
- }
}
if (window->iconic)
@@ -2437,6 +2377,8 @@ meta_window_minimize (MetaWindow *window)
window->desc);
}
}
+
+ /* Should insert minimize effect here? */
}
void
@@ -2452,6 +2394,8 @@ meta_window_unminimize (MetaWindow *window)
queue_calc_showing_func,
NULL);
}
+
+ /* Should insert unminimize effect here? */
}
static void