]>
Commit | Line | Data |
---|---|---|
1 | appicon_captions_maxprotect.diff - Don't cover captions when maximizing windows | |
2 | ||
3 | See the screenshot at: | |
4 | ||
5 | http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.png | |
6 | ||
7 | For use with the appicon_captions patch at: | |
8 | ||
9 | http://www.heily.com/mark/code_samples/appicon_captions.diff (patch) | |
10 | http://www.heily.com/mark/code_samples/appicon_captions.png (screenshot) | |
11 | ||
12 | Usage: | |
13 | ||
14 | In WPrefs.app, disable the option entitled "When maximizing, don't cover icons" | |
15 | Restart wmaker | |
16 | Maximize a window with a captioned appicon | |
17 | ||
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 | |
21 | @@ -432,6 +432,8 @@ | |
22 | int changed_h, changed_v, shrink_h, shrink_v; | |
23 | WArea usableArea, totalArea; | |
24 | ||
25 | + #define CAPTION_HEIGHT ( WMFontHeight(wwin->screen_ptr->clip_title_font) + 3 ) | |
26 | + | |
27 | if (WFLAGP(wwin, no_resizable)) | |
28 | return; | |
29 | ||
30 | @@ -498,6 +499,7 @@ | |
31 | new_y -= wwin->frame->top_width; | |
32 | new_height += wwin->frame->bottom_width - 1; | |
33 | } | |
34 | + new_height -= CAPTION_HEIGHT; | |
35 | } else if (shrink_v) { | |
36 | new_y = wwin->old_geometry.y; | |
37 | new_height = wwin->old_geometry.height; |