File: position.diff

package info (click to toggle)
asclock 2.0.12-37
  • links: PTS
  • area: main
  • in suites: sid
  • size: 1,480 kB
  • sloc: ansic: 1,229; sh: 179; makefile: 74
file content (22 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Description: Fine tune -position argument
#  asclock option "-position -0-0" or -0+0 works better if the
#  default geometry (char *def_geom) is set, because now it gets
#  displayed at the corner and not outside of it.
#  A little inaccuracy is still there because the here hardcoded
#  borderwidth =1 can differ from the actual window manager.
# Author: Christoph Fritz <chris_honschu@gmx.de>
# Last-Update: 2009

Index: asclock-xlib-12/asclock.c
===================================================================
--- asclock-xlib-12.orig/asclock.c	2009-08-08 17:56:17.268088121 +0200
+++ asclock-xlib-12/asclock.c	2009-08-08 17:56:32.655968455 +0200
@@ -110,7 +110,7 @@
   back_pix = GetColor("white");
   fore_pix = GetColor("black");
 
-  XWMGeometry(dpy, screen, Geometry, NULL, (borderwidth =1), &mysizehints,
+  XWMGeometry(dpy, screen, Geometry, "64x64+0+0", (borderwidth =1), &mysizehints,
 	      &mysizehints.x,&mysizehints.y,&mysizehints.width,&mysizehints.height, &i); 
 
   mysizehints.width = asclock.attributes.width;