summaryrefslogtreecommitdiff
path: root/x11/wmessage/patches/patch-ab
blob: 7d0128bcea1cb9ba2d611f95ae51a07653c60502 (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
$NetBSD: patch-ab,v 1.2 2001/03/22 14:00:40 wiz Exp $

--- panel.c.orig	Mon Aug 30 02:28:35 1999
+++ panel.c
@@ -128,7 +128,7 @@
 		return (-2);
 
 	if (settings->centre == True) {
-		WMSetWindowUPosition (panel->win,
+		WMSetWindowInitialPosition (panel->win,
 			(WidthOfScreen (DefaultScreenOfDisplay (settings->dpy)) - WMWidgetWidth(panel->win))/2,
 			(HeightOfScreen (DefaultScreenOfDisplay (settings->dpy)) - WMWidgetHeight(panel->win))/2);
 
@@ -136,7 +136,7 @@
 			(WidthOfScreen (DefaultScreenOfDisplay (settings->dpy)) - WMWidgetWidth(panel->win))/2,
 			(HeightOfScreen (DefaultScreenOfDisplay (settings->dpy)) - WMWidgetHeight(panel->win))/2);
 		
-		WMSetWindowUSize (panel->win, WMWidgetWidth (panel->win), WMWidgetHeight (panel->win));
+		WMSetWindowBaseSize (panel->win, WMWidgetWidth (panel->win), WMWidgetHeight (panel->win));
 	} else if (settings->nearmouse == True) {
 		int x, y, x2, y2;
 		unsigned int mask;
@@ -144,7 +144,7 @@
 
 		XQueryPointer (settings->dpy, DefaultRootWindow (settings->dpy), &root, &child, &x, &y, &x2, &y2, &mask);
 
-		WMSetWindowUPosition (panel->win, x - (WMWidgetWidth(panel->win)/2), y - (WMWidgetHeight(panel->win)/2));
+		WMSetWindowInitialPosition (panel->win, x - (WMWidgetWidth(panel->win)/2), y - (WMWidgetHeight(panel->win)/2));
 		WMMoveWidget (panel->win, x - (WMWidgetWidth(panel->win)/2), y - (WMWidgetHeight(panel->win)/2));
 	}