1 appicon_captions_maxprotect.diff - Don't cover captions when maximizing windows
5 http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.png
7 For use with the appicon_captions patch at:
9 http://www.heily.com/mark/code_samples/appicon_captions.diff (patch)
10 http://www.heily.com/mark/code_samples/appicon_captions.png (screenshot)
14 In WPrefs.app, disable the option entitled "When maximizing, don't cover icons"
16 Maximize a window with a captioned appicon
18 ---cut here---cut here-----------cut here---cut here----
19 --- wm/src/actions.c.orig Sat Feb 16 18:46:54 2002
20 +++ wm/src/actions.c Sat Feb 16 19:07:16 2002
22 int changed_h, changed_v, shrink_h, shrink_v;
23 WArea usableArea, totalArea;
25 + #define CAPTION_HEIGHT ( WMFontHeight(wwin->screen_ptr->clip_title_font) + 3 )
27 if (WFLAGP(wwin, no_resizable))
31 new_y -= wwin->frame->top_width;
32 new_height += wwin->frame->bottom_width - 1;
34 + new_height -= CAPTION_HEIGHT;
35 } else if (shrink_v) {
36 new_y = wwin->old_geometry.y;
37 new_height = wwin->old_geometry.height;