summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-timezone
diff options
context:
space:
mode:
authorGreg Frost <gregfrost1@bigpond.com>2009-07-26 06:51:54 (GMT)
committerGreg Frost <gregfrost1@bigpond.com>2009-07-26 06:51:54 (GMT)
commitbdfa23d3d3dfa3f946c90320c097cd877a6be9b0 (patch)
tree9d9ed6c27820923be1bf1c8ba837f58101b81201 /abs/core-testing/LinHES-timezone
parent94624c5151e04fd638a71fb94a7503a12cc443c5 (diff)
downloadlinhes_pkgbuild-bdfa23d3d3dfa3f946c90320c097cd877a6be9b0.zip
linhes_pkgbuild-bdfa23d3d3dfa3f946c90320c097cd877a6be9b0.tar.gz
linhes_pkgbuild-bdfa23d3d3dfa3f946c90320c097cd877a6be9b0.tar.bz2
LinHES-timezone: set initial window position so it is full screen
Diffstat (limited to 'abs/core-testing/LinHES-timezone')
-rw-r--r--abs/core-testing/LinHES-timezone/PKGBUILD4
-rw-r--r--abs/core-testing/LinHES-timezone/linhes_timezone.c14
2 files changed, 15 insertions, 3 deletions
diff --git a/abs/core-testing/LinHES-timezone/PKGBUILD b/abs/core-testing/LinHES-timezone/PKGBUILD
index 0b0d2ad..eedc364 100644
--- a/abs/core-testing/LinHES-timezone/PKGBUILD
+++ b/abs/core-testing/LinHES-timezone/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Greg Frost <gregfrost1@bigpond.com>
pkgname=LinHES-timezone
pkgver=1
-pkgrel=6
+pkgrel=7
pkgdesc="GUI timezone selector used by LinHES-config."
arch=i686
depends=()
@@ -27,4 +27,4 @@ md5sums=('53976e51e938c555f84b43c933339051'
'0d9e51af5f650dd329edce4531c42a58'
'c01e2335603d8395004e32bae9060fde'
'b20bd68272644f607fbfe7d50e7be42a'
- '448ffca8f38b2dcd989e599ff2057399')
+ '8629268a4f2ca8391e4d1087a9734088')
diff --git a/abs/core-testing/LinHES-timezone/linhes_timezone.c b/abs/core-testing/LinHES-timezone/linhes_timezone.c
index ff75549..d295091 100644
--- a/abs/core-testing/LinHES-timezone/linhes_timezone.c
+++ b/abs/core-testing/LinHES-timezone/linhes_timezone.c
@@ -750,6 +750,17 @@ void remove_titlebar_and_borders ()
(char *) &mwm_hints, 5);
}
+void set_window_position (int x, int y)
+{
+ XSizeHints hints;
+
+ hints.flags = USPosition | PPosition;
+ hints.x = x;
+ hints.y = y;
+
+ XSetWMNormalHints(display, window, &hints);
+}
+
int main (int argc, char *argv[])
{
XEvent xevent;
@@ -851,12 +862,13 @@ int main (int argc, char *argv[])
radius = height;
radius = 0.96 * radius / 2;
-
+
window = XCreateSimpleWindow (display,
DefaultRootWindow(display), x, y, width, height, 0,
land[0].pixel, ocean.pixel);
remove_titlebar_and_borders ();
+ set_window_position (x, y);
if (!window)
{