Author Topic: MacOS second monitor mouse bug (issue #419)  (Read 2721 times)

0 Members and 1 Guest are viewing this topic.

Offline Forestidia86

  • Posts: 721
  • inactive
    • View Profile
MacOS second monitor mouse bug (issue #419)
« on: April 02, 2021, 05:18:43 PM »
Since I don't want to create a github account, some suggestions here to the (probably Allegro) bug (#419)

1) Filing an issue to Allegro, they should know best to find a fix if viable
2) Playing around with the values in the example, e.g. divide through 4, multiply with negative values etc.
3) Looking what values are shown if the cursor is within the window (maybe even create a video for that)
4) Using debug libraries to create log, which can be maybe helpful for issue at Allegro
5) Offering the workaround to switch off the mouse warping, maybe it's viable for Dominator
« Last Edit: April 02, 2021, 05:36:21 PM by Forestidia86 »

Offline Forestidia86

  • Posts: 721
  • inactive
    • View Profile
Re: MacOS second monitor mouse bug (issue #419)
« Reply #1 on: April 02, 2021, 05:40:12 PM »
6) Trying having both monitors the same resolution. (Since Dominator found the readme remark about monitors with different resolutions.)

One of Dominators hunches seems to be that the cursor wants to jump to the promary monitor and only gets to the seam.

Possibly linked issues at Allegro (unsure):

al_get_monitor_info returns wrong values on Retina displays (earlier (closed) issues concerning resolution problems exist as well)
[5.0.7] al_get_window_position returns different values than expected (old, windows/probably not relevant)
Multi-Monitor Support (OSX) (closed,old)
ALLEGRO_MOUSE_STATE display property not set (closed,old)
« Last Edit: April 02, 2021, 06:12:22 PM by Forestidia86 »

Offline Simon

  • Administrator
  • Posts: 3860
    • View Profile
    • Lix
Re: MacOS second monitor mouse bug (issue #419)
« Reply #2 on: April 02, 2021, 07:41:57 PM »
Yep, linked between this LF thread and Dominator's Lix issue #419 on github.

Dominator has filed Allegro5 #1236: Issue with al_set_mouse_xy on secondary monitor (Mac), I'll watch how things develop.

-- Simon

Offline Forestidia86

  • Posts: 721
  • inactive
    • View Profile
Re: MacOS second monitor mouse bug (issue #419)
« Reply #3 on: April 03, 2021, 08:41:24 PM »
What I noticed in the source file qzmouse.m is that it contains "CGDirectDisplayID", which seems to give each monitor an identifier. Maybe there goes sth. wrong, but I can't assess that as a nonprogrammer.


Offline Forestidia86

  • Posts: 721
  • inactive
    • View Profile
Re: MacOS second monitor mouse bug (issue #419)
« Reply #4 on: April 04, 2021, 10:40:55 PM »
7) Positioning the screens above one another (in the displays-arrangement menu) and look if now it still jumps to the seam.

Offline Forestidia86

  • Posts: 721
  • inactive
    • View Profile
Re: MacOS second monitor mouse bug (issue #419)
« Reply #5 on: April 05, 2021, 10:35:12 PM »
On this site seems to be listed most of the commands concerning CGDisplay, which seem to be used in the Allegro code as well.

8) On primary monitor, what happens if you put the window in one lower corner (if it wasn't already tried)?
« Last Edit: April 05, 2021, 10:45:31 PM by Forestidia86 »

Offline Forestidia86

  • Posts: 721
  • inactive
    • View Profile
Re: MacOS second monitor mouse bug (issue #419)
« Reply #6 on: April 09, 2021, 06:51:22 AM »
The documentation to CGMainDisplayID() talks about global display coordinate space and that the main display is the display with its screen location at (0,0).

But don't know if there go calculations wrong or how it was considered.