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
AmiDock : problem with DockyAbsPosition
AmiDock : problem with DockyAbsPosition
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
X1000 - AmigaOS 4.1.6 / 4.1 FE
- SOFISTISOFTWARE
- Posts: 44
- Joined: Sat Jun 18, 2011 9:14 am
- Location: Latina, Italy
- Contact:
Re: AmiDock : problem with DockyAbsPosition
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
Re: AmiDock : problem with DockyAbsPosition
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.
- SOFISTISOFTWARE
- Posts: 44
- Joined: Sat Jun 18, 2011 9:14 am
- Location: Latina, Italy
- Contact:
Re: AmiDock : problem with DockyAbsPosition
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
Re: AmiDock : problem with DockyAbsPosition
Just two thoughts:
- Are you sure DOCKYNOTIFY_RELMOUSE is not set?
- Have you tried using "absPos" instead of "dockyPos"?
Re: AmiDock : problem with DockyAbsPosition
@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.
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
X1000 - AmigaOS 4.1.6 / 4.1 FE
- SOFISTISOFTWARE
- Posts: 44
- Joined: Sat Jun 18, 2011 9:14 am
- Location: Latina, Italy
- Contact:
Re: AmiDock : problem with DockyAbsPosition
Ok thanks, i'll test it in the next days
Sam 460EX, 2Gb Ram, Radeon R7 250E, OS4.1 FE
- broadblues
- AmigaOS Core Developer
- Posts: 600
- Joined: Sat Jun 18, 2011 3:40 am
- Location: Portsmouth, UK
- Contact:
Re: AmiDock : problem with DockyAbsPosition
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
@Broadblues
Yes, maybe but problem is that the issue don't surface everytime.
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
X1000 - AmigaOS 4.1.6 / 4.1 FE
- SOFISTISOFTWARE
- Posts: 44
- Joined: Sat Jun 18, 2011 9:14 am
- Location: Latina, Italy
- Contact:
Re: AmiDock : problem with DockyAbsPosition
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...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.
Sam 460EX, 2Gb Ram, Radeon R7 250E, OS4.1 FE