X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=82a2d5e200b07f92e16fa68a09364c25b3c572d4;hb=03faa4978d63a2bc40e276861ddd7eb8c60a8ae6;hp=4c7de05900a626b2975578feb30cc2093f86d516;hpb=34ed8c17acb4916db160c152436f3b9745dd6576;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index 4c7de059..82a2d5e2 100644 --- a/src/client.cc +++ b/src/client.cc @@ -66,12 +66,14 @@ Client::Client(int screen, Window window) updateProtocols(); - // got the type, the mwmhints, and the protocols, so we're ready to set up + getGravity(); // get the attribute gravity + updateNormalHints(); // this may override the attribute gravity + + // got the type, the mwmhints, the protocols, and the normal hints (min/max + // sizes), so we're ready to set up // the decorations/functions setupDecorAndFunctions(); - getGravity(); // get the attribute gravity - updateNormalHints(); // this may override the attribute gravity // also get the initial_state and set _iconic if we aren't "starting" // when we're "starting" that means we should use whatever state was already // on the window over the initial map state, because it was already mapped @@ -220,7 +222,7 @@ void Client::setupDecorAndFunctions() _functions |= Func_Close; } - if (_min_size.x() > _max_size.x() || _min_size.y() > _max_size.y()) { + if (!(_min_size.x() < _max_size.x() || _min_size.y() < _max_size.y())) { _decorations &= ~(Decor_Maximize | Decor_Handle); _functions &= ~(Func_Resize | Func_Maximize); }