chiark / gitweb /
set wm geometry hint
authorianmdlvl <ianmdlvl>
Sun, 12 Dec 2004 16:37:30 +0000 (16:37 +0000)
committerianmdlvl <ianmdlvl>
Sun, 12 Dec 2004 16:37:30 +0000 (16:37 +0000)
cprogs/xacpi-simple.c

index fb9ecff..be9b2cc 100644 (file)
@@ -496,6 +496,11 @@ static void initgraphics(int argc, char **argv) {
 
   normal_hints->flags= PWinGravity;
   normal_hints->win_gravity= gravity;
+  normal_hints->x= pos_x;
+  normal_hints->y= pos_y;
+  normal_hints->width= width;
+  normal_hints->height= height;
+  if (geom_string) normal_hints->flags |= USPosition;
 
   wm_hints->flags= InputHint;
   wm_hints->input= False;