]> git.pld-linux.org Git - packages/WindowMaker.git/blame - appicon_captions_maxprotect.diff
Security fix for WindowMaker (http://icat.nist.gov/icat.cfm?cvename=CAN-2002-1277)
[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
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;
This page took 0.045913 seconds and 4 git commands to generate.