AmiDock : problem with DockyAbsPosition

A forum for general AmigaOS 4.x support questions that are not platform-specific
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

AmiDock : problem with DockyAbsPosition

Post 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
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
User avatar
SOFISTISOFTWARE
Posts: 44
Joined: Sat Jun 18, 2011 9:14 am
Location: Latina, Italy
Contact:

Re: AmiDock : problem with DockyAbsPosition

Post by SOFISTISOFTWARE »

nobody can help Guillaume ??
Last edited by SOFISTISOFTWARE on Thu Feb 20, 2014 9:35 pm, edited 1 time in total.
Sam 460EX, 2Gb Ram, Radeon R7 250E, OS4.1 FE
whose
Posts: 92
Joined: Sun Sep 04, 2011 4:11 pm

Re: AmiDock : problem with DockyAbsPosition

Post 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.
User avatar
SOFISTISOFTWARE
Posts: 44
Joined: Sat Jun 18, 2011 9:14 am
Location: Latina, Italy
Contact:

Re: AmiDock : problem with DockyAbsPosition

Post 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 ??
Sam 460EX, 2Gb Ram, Radeon R7 250E, OS4.1 FE
User avatar
gazelle
Posts: 102
Joined: Sun Mar 04, 2012 12:49 pm
Location: Frohnleiten, Austria

Re: AmiDock : problem with DockyAbsPosition

Post by gazelle »

Just two thoughts:
  • Are you sure DOCKYNOTIFY_RELMOUSE is not set?
  • Have you tried using "absPos" instead of "dockyPos"?
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: AmiDock : problem with DockyAbsPosition

Post 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.
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
User avatar
SOFISTISOFTWARE
Posts: 44
Joined: Sat Jun 18, 2011 9:14 am
Location: Latina, Italy
Contact:

Re: AmiDock : problem with DockyAbsPosition

Post by SOFISTISOFTWARE »

Ok thanks, i'll test it in the next days
Sam 460EX, 2Gb Ram, Radeon R7 250E, OS4.1 FE
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK
Contact:

Re: AmiDock : problem with DockyAbsPosition

Post 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.
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: AmiDock : problem with DockyAbsPosition

Post by zzd10h »

@Broadblues
Yes, maybe but problem is that the issue don't surface everytime.
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
User avatar
SOFISTISOFTWARE
Posts: 44
Joined: Sat Jun 18, 2011 9:14 am
Location: Latina, Italy
Contact:

Re: AmiDock : problem with DockyAbsPosition

Post 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...
Sam 460EX, 2Gb Ram, Radeon R7 250E, OS4.1 FE
Post Reply