summaryrefslogtreecommitdiff
blob: b6036a5e268103da7f168733c0f5187234c81ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
--- fvwm-2.5.10/fvwm/add_window.c	2004-03-17 14:42:53.000000000 +0000
+++ fvwm/fvwm/add_window.c	2004-03-30 10:05:08.000000000 +0100
@@ -937,9 +937,10 @@
 	size_borders b;
 
 	XSetWindowAttributes attributes;
-	int valuemask = CWBackingStore | CWBackPixmap | CWCursor | CWEventMask |
-		CWSaveUnder;
+	int valuemask;
 
+	valuemask = CWBackingStore | CWBackPixmap | CWCursor | CWEventMask |
+		CWSaveUnder;
 	attributes.backing_store = NotUseful;
 	attributes.background_pixmap = None;
 	attributes.cursor = Scr.FvwmCursors[CRS_DEFAULT];
@@ -1829,7 +1830,6 @@
 void setup_frame_attributes(
 	FvwmWindow *fw, window_style *pstyle)
 {
-	int i;
 	XSetWindowAttributes xswa;
 
 	/* Backing_store is controlled on the client, borders, title & buttons
@@ -1847,36 +1847,18 @@
 		xswa.backing_store = NotUseful;
 		break;
 	}
-	XChangeWindowAttributes(dpy, FW_W(fw), CWBackingStore, &xswa);
-	if (pstyle->flags.use_backing_store == BACKINGSTORE_OFF)
-	{
-		xswa.backing_store = NotUseful;
-	}
-	if (HAS_TITLE(fw))
-	{
-		XChangeWindowAttributes(
-			dpy, FW_W_TITLE(fw), CWBackingStore, &xswa);
-		for (i = 0; i < NUMBER_OF_BUTTONS; i++)
-		{
-			if (FW_W_BUTTON(fw, i))
-			{
-				XChangeWindowAttributes(
-					dpy, FW_W_BUTTON(fw, i),
-					CWBackingStore, &xswa);
-			}
-		}
-	}
-
 	/* parent_relative is applied to the frame and the parent */
 	xswa.background_pixmap = pstyle->flags.use_parent_relative
 		? ParentRelative : None;
-	XChangeWindowAttributes(dpy, FW_W_FRAME(fw), CWBackPixmap, &xswa);
-	XChangeWindowAttributes(dpy, FW_W_PARENT(fw), CWBackPixmap, &xswa);
-
 	/* Save_under is only useful on the frame */
 	xswa.save_under = pstyle->flags.do_save_under
 		? Scr.flags.do_save_under : NotUseful;
-	XChangeWindowAttributes(dpy, FW_W_FRAME(fw), CWSaveUnder, &xswa);
+	XChangeWindowAttributes(dpy, FW_W(fw), CWBackingStore, &xswa);
+	XChangeWindowAttributes(
+		dpy, FW_W_PARENT(fw), CWBackPixmap | CWBackingStore, &xswa);
+	XChangeWindowAttributes(
+		dpy, FW_W_FRAME(fw),
+		CWBackPixmap | CWBackingStore | CWSaveUnder, &xswa);
 
 	return;
 }
--- fvwm-2.5.10/modules/FvwmTaskBar/FvwmTaskBar.c	2004-03-15 13:48:52.000000000 +0000
+++ fvwm/modules/FvwmTaskBar/FvwmTaskBar.c	2004-03-30 10:05:09.000000000 +0100
@@ -532,7 +532,6 @@
 
 	win_border = nb;
 	win_width = nw;
-	win_height = nh;
 	win_has_title = nht;
 	win_title_dir = ntd;
 	win_title_height = nth;
--- fvwm-2.5.10/modules/FvwmButtons/FvwmButtons.1	2002-11-09 15:18:52.000000000 +0000
+++ fvwm/modules/FvwmButtons/FvwmButtons.1	2004-03-30 10:05:08.000000000 +0100
@@ -1127,7 +1127,8 @@
 
 # Pop up a module menu directly above the button.
 *FvwmButtons: (9x1+3+0, Padding 0, Title "Modules",   \\
-  Action `Menu Modulepopup rectangle $wx$h+$l+$t o+50 -100m`)
+  Action `Menu Modulepopup rectangle \\
+  $widthx$height+$lleft+$top o+50 -100m`)
 
 # first row of buttons from left to right:
 *FvwmButtons: (3x2+0+1, Icon my_lock.xpm, Action `Exec xlock`)