Clean up maximization and un-maximization logic
commitc04a2caeab929a5f4109016a10d7858c3f1f7f7e
authorCarlos R. Mafra <crmafra@gmail.com>
Tue, 1 Sep 2009 01:22:57 +0000 (1 03:22 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 2 Sep 2009 02:42:19 +0000 (2 04:42 +0200)
treefa6423ffdf1ee6bcc8278598b4935bb54aca2bbd
parentcf62d1591f5aef1e6760a8c0881a6de97ae26e92
Clean up maximization and un-maximization logic

We should not try to un-maximize the windows from inside
the function wMaximizeWindow(), as that makes no sense.

If the window is already maximized then we don't call
wMaximizeWindow() anymore and call wUnmaximizeWindow()
instead, which will use the old geometry regardless
of which maximization is active (horizontal, vertical,
maximus, etc). And the old geometry now is also saved
when we enter wMaximizeWindow().

So when we call wMaximizeWindow() or wUnmaximizeWindow()
we really mean "maximize to the specified state" or
"go back to whatever old geometry coordinates we had before".
src/actions.c
src/event.c