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
|
$NetBSD: patch-at,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
Index: resize.c
===================================================================
RCS file: /home/siren/src/tvtwm/resize.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- resize.c 1999/08/08 05:46:53 1.1.1.1
+++ resize.c 1999/08/08 05:56:56 1.2
@@ -90,6 +90,9 @@
#include "add_window.h"
#include "screen.h"
+/* function prototypes */
+void SetFrameShape (TwmWindow *tmp);
+
#define MINHEIGHT 0 /* had been 32 */
#define MINWIDTH 0 /* had been 60 */
@@ -349,8 +352,8 @@
TwmWindow *tmp_win;
int x, y, w, h;
{
- Window junkRoot;
- unsigned int junkbw, junkDepth;
+/* Window junkRoot;
+ unsigned int junkbw, junkDepth;*/
XGrabServer(dpy);
XGrabPointer(dpy, Scr->Root, True,
ButtonPressMask | ButtonMotionMask | PointerMotionMask,
@@ -677,7 +680,7 @@
}
if (!Scr->NoRaiseResize)
- RaiseFrame(dpy, tmp_win);
+ RaiseFrame(tmp_win);
UninstallRootColormap();
@@ -735,7 +738,7 @@
*
***********************************************************************/
-ConstrainSize (tmp_win, widthp, heightp)
+void ConstrainSize (tmp_win, widthp, heightp)
TwmWindow *tmp_win;
int *widthp, *heightp;
{
@@ -1174,7 +1177,7 @@
}
if (!Scr->NoRaiseResize)
- RaiseFrame(dpy, tmp_win);
+ RaiseFrame(tmp_win);
ConstrainSize(tmp_win, &dragWidth, &dragHeight);
@@ -1183,6 +1186,7 @@
XUngrabServer (dpy);
}
+void
SetFrameShape (tmp)
TwmWindow *tmp;
{
|