]> git.pld-linux.org Git - packages/WindowMaker.git/blame - appicon_captions_maxprotect.diff
- rel 19; fix build
[packages/WindowMaker.git] / appicon_captions_maxprotect.diff
CommitLineData
5375f6d8 1appicon_captions_maxprotect.diff - Don't cover captions when maximizing windows
2
3See the screenshot at:
4
5 http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.png
6
7For 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
12Usage:
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
f6599bda
JR
21@@ -432,6 +432,8 @@
22 int changed_h, changed_v, shrink_h, shrink_v;
23 WArea usableArea, totalArea;
5375f6d8 24
25+ #define CAPTION_HEIGHT ( WMFontHeight(wwin->screen_ptr->clip_title_font) + 3 )
f6599bda 26+
27ba6656 27 if (!IS_RESIZABLE(wwin))
f6599bda
JR
28 return;
29
5375f6d8 30@@ -498,6 +499,7 @@
f6599bda
JR
31 new_y -= wwin->frame->top_width;
32 new_height += wwin->frame->bottom_width - 1;
33 }
5375f6d8 34+ new_height -= CAPTION_HEIGHT;
f6599bda
JR
35 } else if (shrink_v) {
36 new_y = wwin->old_geometry.y;
37 new_height = wwin->old_geometry.height;
This page took 0.075564 seconds and 4 git commands to generate.