Posted by member 31 on 2003-04-04 12:23:06 link
Any VWM, that hides the window instead of moving them, doesn't have the problem. Most non-litestep VWM's do it this way.
RabidCow, the best way I've come up with to handle this is to add an option that restores the window to an unmaximized state when switching VWs. Of course, if you are keeping track of what windows are on what VW, then you could tag that window as being maximized, and maximize it when switching back to the VW it is on.
The only problem with this, is that you can not do it using the DeferWindowPos handler, so you will see the affect when switching VWs. :(
But, it works... And it isn't too annoying, since a simple hotkey bound to maximize a window will get you back to where you were when switching back to the window that used to be maximized.
RabidCow, the best way I've come up with to handle this is to add an option that restores the window to an unmaximized state when switching VWs. Of course, if you are keeping track of what windows are on what VW, then you could tag that window as being maximized, and maximize it when switching back to the VW it is on.
if( !g_bKeepMaximized && IsZoomed(hWnd) )
{
ShowWindow(hWnd, SW_SHOWNOACTIVATE);
}
{
ShowWindow(hWnd, SW_SHOWNOACTIVATE);
}
The only problem with this, is that you can not do it using the DeferWindowPos handler, so you will see the affect when switching VWs. :(
But, it works... And it isn't too annoying, since a simple hotkey bound to maximize a window will get you back to where you were when switching back to the window that used to be maximized.