summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-timezone/linhes_timezone.c
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/LinHES-timezone/linhes_timezone.c')
-rw-r--r--abs/core-testing/LinHES-timezone/linhes_timezone.c14
1 files changed, 13 insertions, 1 deletions
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)
{