Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/oneko.c b/oneko.c
- index 48c5bda..7ab4e51 100644
- --- a/oneko.c
- +++ b/oneko.c
- @@ -78,6 +78,7 @@ int ToWindow = NOTDEFINED; /* towindow */
- int ToFocus = NOTDEFINED; /* tofocus */
- int XOffset=0,YOffset=0; /* X and Y offsets for cat from mouse
- pointer. */
- +int position_set = NOTDEFINED;
- /*
- * @$$$m$$$m$J>uBVJQ?t
- */
- @@ -342,6 +343,7 @@ void GetResources()
- char *resource;
- int num;
- int loop;
- + int result,foo,bar;
- if (Foreground == NULL) {
- if ((resource = NekoGetDefault("foreground")) != NULL) {
- Foreground = resource;
- @@ -386,6 +388,13 @@ void GetResources()
- }
- }
- + if (position_set == NOTDEFINED) {
- + if ((resource = NekoGetDefault("position")) != NULL) { // BACKHERE
- + result=XParseGeometry(resource,&XOffset,&YOffset,&foo,&bar);
- + }
- + position_set = 1; // Set this either way
- + }
- +
- if (NoShape == NOTDEFINED) {
- if ((resource = NekoGetDefault("noshape")) != NULL) {
- NoShape = IsTrue(resource);
- @@ -1514,6 +1523,7 @@ GetArguments(argc, argv, theDisplayName)
- else if (strcmp(argv[ArgCounter], "-position") == 0) {
- ArgCounter++;
- result=XParseGeometry(argv[ArgCounter],&XOffset,&YOffset,&foo,&bar);
- + position_set = 1; // So that we don't try to set it
- }
- else if (strcmp(argv[ArgCounter], "-debug") ==0) {
- Synchronous = True;
Advertisement
Comments
-
- Sample additions to your .Xdefaults:
- Oneko.speed: 40
- Oneko.position: -25-25
Add Comment
Please, Sign In to add comment
Advertisement