fix problems relating to windows reparenting themselves.

Fixes vncviewer switch to fullscreen. Maybe mplayer fullscreen issue
too?
This commit is contained in:
rathnor 2003-09-11 21:30:20 +00:00
parent 4b035f1d07
commit da503e9247
3 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,10 @@
(Format: Year/Month/Day)
Changes for 0.9.6:
*03/09/12:
* Fix a couple of issues related to windows reparenting themselves
to escape the WM. Hopefully fixes mplayer/vncviewer fullscreen
problems. (Simon)
fluxbox.cc Window.cc
* Fix window gravity handling (Simon)
- should fix some offset fullscreen issues
FbWinFrame.hh/cc WinClient.hh/cc Window.cc

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: Window.cc,v 1.224 2003/09/11 19:55:27 rathnor Exp $
// $Id: Window.cc,v 1.225 2003/09/11 21:30:20 rathnor Exp $
#include "Window.hh"
@ -2963,7 +2963,10 @@ void FluxboxWindow::restore(WinClient *client, bool remap) {
int wx = frame().x(), wy = frame().y(); // not actually used here
frame().gravityTranslate(wx, wy, -client->gravity(), true); // negative to invert
client->hide();
// Why was this hide done? It broke vncviewer (and mplayer?),
// since it would reparent when going fullscreen.
// is it needed for anything? Reparent should imply unmap
//client->hide();
// restore old border width
client->setBorderWidth(client->old_bw);

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: fluxbox.cc,v 1.188 2003/09/10 09:51:58 fluxgen Exp $
// $Id: fluxbox.cc,v 1.189 2003/09/11 21:30:20 rathnor Exp $
#include "fluxbox.hh"
@ -873,7 +873,8 @@ void Fluxbox::handleEvent(XEvent * const e) {
#endif // DEBUG
} else {
if (winclient == m_focused_window)
setFocusedWindow(0);
}
}
break;