Fix flashing from maximized state problem

This commit is contained in:
Tom Beckmann 2012-07-25 17:30:12 +02:00
parent e8e004934d
commit 22f1782118

View File

@ -258,7 +258,10 @@ namespace Gala
//stolen from original mutter plugin
public override void maximize (WindowActor actor, int ex, int ey, int ew, int eh)
{
if (!AnimationSettings.get_default ().enable_animations) {
var meta_win = actor.get_meta_window ();
if (!AnimationSettings.get_default ().enable_animations ||
meta_win.maximized_horizontally || meta_win.maximized_vertically) {
maximize_completed (actor);
return;
}