# HG changeset patch # User ib # Date 1358541106 0 # Node ID dfdb25bad545ad29d22e63e42f987d5766988a82 # Parent f6470f5787b9a669184a2cb303c171fb72a89b70 Enable resize handles for resizable windows only. Fixed size windows must have disabled resize handles. diff -r f6470f5787b9 -r dfdb25bad545 gui/wm/ws.c --- a/gui/wm/ws.c Fri Jan 18 20:29:02 2013 +0000 +++ b/gui/wm/ws.c Fri Jan 18 20:31:46 2013 +0000 @@ -1022,7 +1022,11 @@ wsMotifWmHints.flags = MWM_HINTS_FUNCTIONS | MWM_HINTS_DECORATIONS; if (decor) { - wsMotifWmHints.functions = MWM_FUNC_MOVE | MWM_FUNC_CLOSE | MWM_FUNC_MINIMIZE | MWM_FUNC_MAXIMIZE | MWM_FUNC_RESIZE; + wsMotifWmHints.functions = MWM_FUNC_MOVE | MWM_FUNC_CLOSE | MWM_FUNC_MINIMIZE | MWM_FUNC_MAXIMIZE; + + if (!(win->Property & wsMinSize) || !(win->Property & wsMaxSize)) + wsMotifWmHints.functions |= MWM_FUNC_RESIZE; + wsMotifWmHints.decorations = MWM_DECOR_ALL; }