mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
default: Remove the unmaximize implementation
It does nothing.
This commit is contained in:
parent
e2bd15541b
commit
270c7abd3c
@ -83,12 +83,6 @@ static void maximize (MetaPlugin *plugin,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
static void unmaximize (MetaPlugin *plugin,
|
|
||||||
MetaWindowActor *actor,
|
|
||||||
gint x,
|
|
||||||
gint y,
|
|
||||||
gint width,
|
|
||||||
gint height);
|
|
||||||
|
|
||||||
static void switch_workspace (MetaPlugin *plugin,
|
static void switch_workspace (MetaPlugin *plugin,
|
||||||
gint from,
|
gint from,
|
||||||
@ -214,7 +208,6 @@ meta_default_plugin_class_init (MetaDefaultPluginClass *klass)
|
|||||||
plugin_class->map = map;
|
plugin_class->map = map;
|
||||||
plugin_class->minimize = minimize;
|
plugin_class->minimize = minimize;
|
||||||
plugin_class->maximize = maximize;
|
plugin_class->maximize = maximize;
|
||||||
plugin_class->unmaximize = unmaximize;
|
|
||||||
plugin_class->destroy = destroy;
|
plugin_class->destroy = destroy;
|
||||||
plugin_class->switch_workspace = switch_workspace;
|
plugin_class->switch_workspace = switch_workspace;
|
||||||
plugin_class->show_tile_preview = show_tile_preview;
|
plugin_class->show_tile_preview = show_tile_preview;
|
||||||
@ -622,23 +615,6 @@ maximize (MetaPlugin *plugin,
|
|||||||
meta_plugin_maximize_completed (plugin, window_actor);
|
meta_plugin_maximize_completed (plugin, window_actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* See comments on the maximize() function.
|
|
||||||
*
|
|
||||||
* (Just a skeleton code.)
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
unmaximize (MetaPlugin *plugin,
|
|
||||||
MetaWindowActor *window_actor,
|
|
||||||
gint end_x, gint end_y, gint end_width, gint end_height)
|
|
||||||
{
|
|
||||||
MetaWindow *meta_window = meta_window_actor_get_meta_window (window_actor);
|
|
||||||
MetaWindowType type = meta_window_get_window_type (meta_window);
|
|
||||||
|
|
||||||
/* Do this conditionally, if the effect requires completion callback. */
|
|
||||||
meta_plugin_unmaximize_completed (plugin, window_actor);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
on_map_effect_complete (ClutterTimeline *timeline, EffectCompleteData *data)
|
on_map_effect_complete (ClutterTimeline *timeline, EffectCompleteData *data)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user