situation: a maximized xterm changes its size (coz the user changes the font).
after unmaximizing the window it snaps back to its old values .. which are not in sync with the sizehints anymore. hence we need to apply them for maximizing / unmaximizing and unfullscreen to avoid ugly visual appearance.
This commit is contained in:
parent
be03b0a3dc
commit
48579408d1
2 changed files with 77 additions and 61 deletions
|
@ -1,6 +1,8 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 0.9.16:
|
||||
*06/04/11:
|
||||
* Ensure applying of size hints while maximizing (Mathias)
|
||||
Window.cc
|
||||
* Fix calculation of prevWorkspace (Mathias)
|
||||
Screen.cc
|
||||
* Cosmetic, close #1467926 (thanx Jonas Koelker)
|
||||
|
|
|
@ -1613,7 +1613,15 @@ void FluxboxWindow::setFullscreen(bool flag) {
|
|||
setDecorationMask(m_old_decoration_mask);
|
||||
frame().setUseShape(!m_shaped);
|
||||
|
||||
moveResize(m_old_pos_x, m_old_pos_y, m_old_width, m_old_height);
|
||||
// ensure we apply the sizehints here, otherwise some
|
||||
// apps (eg xterm) end up a little bit .. crappy (visually)
|
||||
m_last_resize_x = m_old_pos_x;
|
||||
m_last_resize_y = m_old_pos_y;
|
||||
m_last_resize_w = m_old_width;
|
||||
m_last_resize_h = m_old_height;
|
||||
fixsize();
|
||||
|
||||
moveResize(m_last_resize_x, m_last_resize_y, m_last_resize_w, m_last_resize_h);
|
||||
moveToLayer(m_old_layernum);
|
||||
|
||||
m_old_decoration_mask = 0;
|
||||
|
@ -1706,8 +1714,14 @@ void FluxboxWindow::maximize(int type) {
|
|||
maximized ^= MAX_HORZ;
|
||||
}
|
||||
|
||||
moveResize(new_x, new_y, new_w, new_h);
|
||||
|
||||
// ensure we apply the sizehints here, otherwise some
|
||||
// apps (eg xterm) end up a little bit .. crappy (visually)
|
||||
m_last_resize_x = new_x;
|
||||
m_last_resize_y = new_y;
|
||||
m_last_resize_w = new_w;
|
||||
m_last_resize_h = new_h;
|
||||
fixsize();
|
||||
moveResize(m_last_resize_x, m_last_resize_y, m_last_resize_w, m_last_resize_h);
|
||||
}
|
||||
/**
|
||||
* Maximize window horizontal
|
||||
|
|
Loading…
Reference in a new issue