all repos — fluxbox @ 3075af90d67321bc4c3b6d07910e1acbcddca70e

custom fork of the fluxbox windowmanager

minor fixes
fluxgen fluxgen
commit

3075af90d67321bc4c3b6d07910e1acbcddca70e

parent

92782ef4d4dba2463f3d8164f8cba723b7648469

1 files changed, 9 insertions(+), 8 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.56 2002/06/02 22:43:20 fluxgen Exp $ +// $Id: Window.cc,v 1.57 2002/06/02 23:35:30 fluxgen Exp $ #include "Window.hh"

@@ -1265,10 +1265,10 @@ tab->iconify();

else if (current_state == WithdrawnState) tab->withdraw(); } - } else { - if (tab) { //got a tab? then destroy it + } else { + if (tab != 0) { //got a tab? then destroy it delete tab; - tab=0; + tab = 0; } }

@@ -1276,7 +1276,7 @@ client.x = frame.x + frame.mwm_border_w + screen->getBorderWidth();

client.y = frame.y + frame.y_border + frame.mwm_border_w + screen->getBorderWidth(); - if (getTitle().size()>0) { + if (getTitle().size() > 0) { if (I18n::instance()->multibyte()) { XRectangle ink, logical; XmbTextExtents(screen->getWindowStyle()->font.set,

@@ -2889,7 +2889,8 @@ break;

case XA_WM_ICON_NAME: getWMIconName(); - if (iconic) screen->iconUpdate(); + if (iconic) + screen->iconUpdate(); updateIcon(); break;

@@ -2916,10 +2917,10 @@

if ((client.normal_hint_flags & PMinSize) && (client.normal_hint_flags & PMaxSize)) { if (client.max_width <= client.min_width && - client.max_height <= client.min_height) + client.max_height <= client.min_height) { decorations.maximize = decorations.handle = functions.resize = functions.maximize = false; - else { + } else { decorations.handle = false; decorations.maximize = functions.resize = functions.maximize = true; }