all repos — fluxbox @ ae1200ddbfef409b506799584c0fe8f945300dc1

custom fork of the fluxbox windowmanager

fixed WM_NORMAL_HINTS
fluxgen fluxgen
commit

ae1200ddbfef409b506799584c0fe8f945300dc1

parent

5512cac1b62e233a6edc9a7bd87d32deaeda9612

1 files changed, 17 insertions(+), 9 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.86 2002/09/12 14:55:11 rathnor Exp $ +// $Id: Window.cc,v 1.87 2002/09/14 12:31:18 fluxgen Exp $ #include "Window.hh"

@@ -1488,7 +1488,7 @@ event.xconfigure.border_width = client.old_bw;

event.xconfigure.above = frame.window; event.xconfigure.override_redirect = false; - XSendEvent(display, client.window, True, NoEventMask, &event); + XSendEvent(display, client.window, False, StructureNotifyMask, &event); screen->updateNetizenConfigNotify(&event); }

@@ -2677,16 +2677,24 @@ case XA_WM_NORMAL_HINTS: {

getWMNormalHints(); if ((client.normal_hint_flags & PMinSize) && - (client.normal_hint_flags & PMaxSize)) { + (client.normal_hint_flags & PMaxSize)) { + if (client.max_width <= client.min_width && - client.max_height <= client.min_height) { - decorations.maximize = decorations.handle = - functions.resize = functions.maximize = false; - } else { + client.max_height <= client.min_height) { + decorations.maximize = false; decorations.handle = false; - decorations.maximize = functions.resize = functions.maximize = true; + functions.resize=false; + functions.maximize=false; + } else { + if (! isTransient()) { + decorations.maximize = true; + decorations.handle = true; + functions.maximize = true; + } + functions.resize = true; } - } + + } int x = frame.x, y = frame.y; unsigned int w = frame.width, h = frame.height;