If a window is resized manually when maximized, unset the maximize state.
authorChristopher Michael <cpmichael1@comcast.net>
Sat, 29 Jul 2006 15:09:53 +0000 (15:09 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Sat, 29 Jul 2006 15:09:53 +0000 (15:09 +0000)
SVN revision: 24297

src/bin/e_border.c

index 2fb0a3e..5de5765 100644 (file)
@@ -6657,6 +6657,12 @@ _e_border_resize_end(E_Border *bd)
      }
    e_resize_end();
    resize = NULL;
+   
+   /* If this border was maximized, we need to unset Maximized state or
+    * on restart, E still thinks it's maximized */
+   if (bd->maximized != E_MAXIMIZE_NONE) 
+       e_hints_window_maximized_set(bd, bd->maximized & E_MAXIMIZE_NONE,
+                                    bd->maximized & E_MAXIMIZE_NONE);
    return 1;
 }