]>
Commit | Line | Data |
---|---|---|
5375f6d8 | 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,7 @@ | |
22 | WArea usableArea = wwin->screen_ptr->totalUsableArea; | |
23 | WArea totalArea; | |
24 | ||
25 | + #define CAPTION_HEIGHT ( WMFontHeight(wwin->screen_ptr->clip_title_font) + 3 ) | |
26 | ||
27 | if (WFLAGP(wwin, no_resizable)) | |
28 | return; | |
29 | @@ -498,6 +499,7 @@ | |
30 | new_y -= wwin->frame->top_width; | |
31 | new_height += wwin->frame->bottom_width - 1; | |
32 | } | |
33 | + new_height -= CAPTION_HEIGHT; | |
34 | } else { | |
35 | new_y = wwin->frame_y; | |
36 | new_height = wwin->frame->core->height; |