diff options
author | Greg Frost <gregfrost1@bigpond.com> | 2009-07-26 06:51:54 (GMT) |
---|---|---|
committer | Greg Frost <gregfrost1@bigpond.com> | 2009-07-26 06:51:54 (GMT) |
commit | bdfa23d3d3dfa3f946c90320c097cd877a6be9b0 (patch) | |
tree | 9d9ed6c27820923be1bf1c8ba837f58101b81201 /abs/core-testing/LinHES-timezone/linhes_timezone.c | |
parent | 94624c5151e04fd638a71fb94a7503a12cc443c5 (diff) | |
download | linhes_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/linhes_timezone.c')
-rw-r--r-- | abs/core-testing/LinHES-timezone/linhes_timezone.c | 14 |
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) { |