Changelog for Openbox:
2.2.1:
+ * Fix for clients changing from a non-resizable window (Ben Jansens)
+ to a resizable window.
+
* Fix bug with mutltibyte fonts being really tiny. (Ben Jansens)
* Stop using Utf8 drawing routines for Xft. These (Ben Jansens)
case XA_WM_NORMAL_HINTS: {
getWMNormalHints();
- if ((client.normal_hint_flags & PMinSize) &&
- (client.normal_hint_flags & PMaxSize)) {
- // the window now can/can't resize itself, so the buttons need to be
- // regrabbed.
- ungrabButtons();
- if (client.max_width <= client.min_width &&
- client.max_height <= client.min_height) {
- functions &= ~(Func_Resize | Func_Maximize);
- } else {
- if (! isTransient())
- functions |= Func_Maximize;
- functions |= Func_Resize;
- }
- grabButtons();
- setAllowedActions();
- setupDecor();
+ // the window now can/can't resize itself, so the buttons need to be
+ // regrabbed.
+ ungrabButtons();
+ if (((client.normal_hint_flags & PMinSize) &&
+ (client.normal_hint_flags & PMaxSize)) &&
+ (client.max_width <= client.min_width &&
+ client.max_height <= client.min_height)) {
+ functions &= ~(Func_Resize | Func_Maximize);
+ } else {
+ if (! isTransient())
+ functions |= Func_Maximize;
+ functions |= Func_Resize;
}
+ grabButtons();
+ setAllowedActions();
+ setupDecor();
Rect old_rect = frame.rect;