[MPlayer-cvslog] r35785 - trunk/gui/wm/ws.c
ib
subversion at mplayerhq.hu
Fri Jan 18 21:31:46 CET 2013
Author: ib
Date: Fri Jan 18 21:31:46 2013
New Revision: 35785
Log:
Enable resize handles for resizable windows only.
Fixed size windows must have disabled resize handles.
Modified:
trunk/gui/wm/ws.c
Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c Fri Jan 18 21:29:02 2013 (r35784)
+++ trunk/gui/wm/ws.c Fri Jan 18 21:31:46 2013 (r35785)
@@ -1022,7 +1022,11 @@ void wsWindowDecoration(wsWindow *win, B
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;
}
More information about the MPlayer-cvslog
mailing list