Page 1 of 2

AmiDock : problem with DockyAbsPosition

Posted: Wed Feb 19, 2014 9:41 pm
by zzd10h
Hello,
In my Dockies (NetDock, RAMDock,etc) I use the (struct DockyAbsPosition)dockyPos.x to find the x position of the docky to display a window below the docky.

On my x1000, no problem, the x position is always good.

On my SAM440 (and on another Amigans SAM460) sometimes, the dockyPos.x is equal to 0.
Therefore the window is not below the docky but in the left border of the screen.

This problem is not always encountered.

If I reposition the Docky (with the AmiDock prefs window for example) the dockyPos.x is well rediscovered.

Is somebody know where can be the problem ?
Why not on x1000 but on SAM4x0 ?

Details :

case DOCKYSET_MouseMove:
{
dd->dockPos = *(struct DockyAbsPosition *)msgData;
x = dd->dockPos.dockyPos.x ;
}


Thank you by advance for help or advices

Re: AmiDock : problem with DockyAbsPosition

Posted: Thu Feb 20, 2014 3:10 pm
by SOFISTISOFTWARE
nobody can help Guillaume ??

Re: AmiDock : problem with DockyAbsPosition

Posted: Thu Feb 20, 2014 4:21 pm
by whose
I´m not of help with this, but I think that this is OS version related, hence not on the X1000 but on the SAM440ep(flex). Should be tested on SAM460ex and Pegasos/AOne, too, to clarify. I know how frustrating it is to hunt for a bug and discover, that the bug is somewhere else (see my ScreenBlanker related post). If you did anything you could do to find the bug und it still hides, search for it at another place.

Re: AmiDock : problem with DockyAbsPosition

Posted: Thu Feb 20, 2014 9:32 pm
by SOFISTISOFTWARE
I tested it on my Sam460 and the problem is the same, it seems only on X1000 works well, Guillaume have you checked the related library and amidock version on your X1000 if they're the same as sam series ??

Re: AmiDock : problem with DockyAbsPosition

Posted: Fri Feb 21, 2014 11:53 am
by gazelle
Just two thoughts:
  • Are you sure DOCKYNOTIFY_RELMOUSE is not set?
  • Have you tried using "absPos" instead of "dockyPos"?

Re: AmiDock : problem with DockyAbsPosition

Posted: Fri Feb 21, 2014 1:13 pm
by zzd10h
@whose
yes or maybe related to the speed of the processor (I really don't know...)

@Gazelle
Thank you for your advices

1) DOCKYNOTIFY_RELMOUSE is not set.
This issue doesn't occur everytime. It will be easy to fix (or to surrender) if it was the case

2) Yes, I tried absPos but it didn't worked in case DOCKYSET_MouseMove.
I don't remember well but it returned 0 or it mades AmiDock crash...

@SOFISTISOFTWARE
I sent you by PM on AW.net a link to another version.
Now, if dockPos.dockyPos.x returns 0 I use WPOS_CENTERMOUSE ( therefore I will not try to calculate the exact centered position but I will use the cursor position who is on the Docky).

As I can't test it easily, could you test a little please ?

Thank you all.

Re: AmiDock : problem with DockyAbsPosition

Posted: Fri Feb 21, 2014 3:20 pm
by SOFISTISOFTWARE
Ok thanks, i'll test it in the next days

Re: AmiDock : problem with DockyAbsPosition

Posted: Sun Feb 23, 2014 1:52 am
by broadblues
If it happens on one machine and not the other are your AmiDocks identical? If not make sure they are, it mioght be a certain preference setting that causes the issue.

Re: AmiDock : problem with DockyAbsPosition

Posted: Sun Feb 23, 2014 1:47 pm
by zzd10h
@Broadblues
Yes, maybe but problem is that the issue don't surface everytime.

Re: AmiDock : problem with DockyAbsPosition

Posted: Wed Feb 26, 2014 11:57 pm
by SOFISTISOFTWARE
broadblues wrote:If it happens on one machine and not the other are your AmiDocks identical? If not make sure they are, it mioght be a certain preference setting that causes the issue.
It happens while the WB is finishing to load you have to move the mouse pointer, if you leave it on the default top left corner it doesn't occur...