[PATCH 2/2] Fix mouse/motion event scaling issue with GTK display backend

2024-05-12 Thread hikalium
on Crostini on ChromeOS (15823.51.0) with an external display. Fixes: 2f31663ed4 ("ui/gtk: use widget size for cursor motion event") Fixes: f14aab420c ("ui: fix incorrect pointer position on highdpi with gtk") Signed-off-by: hikalium --- ui/gtk.c | 18 +--

[PATCH 1/2] Add gd_motion_event trace event

2024-05-12 Thread hikalium
Add gd_motion_event trace event for making it easy to debug gd_motion_event related issues. Signed-off-by: hikalium --- ui/gtk.c| 2 ++ ui/trace-events | 1 + 2 files changed, 3 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index 810d7fc796..ebae888d4f 100644 --- a/ui/gtk.c +++ b/ui

[PATCH v2 2/2] ui/gtk: Fix mouse/motion event scaling issue with GTK display backend

2024-05-12 Thread hikalium
on Crostini on ChromeOS (15823.51.0) with an external display. Fixes: 2f31663ed4 ("ui/gtk: use widget size for cursor motion event") Fixes: f14aab420c ("ui: fix incorrect pointer position on highdpi with gtk") Signed-off-by: hikalium --- ui/gtk.c | 18 +--

[PATCH v2 1/2] ui/gtk: Add gd_motion_event trace event

2024-05-12 Thread hikalium
Add gd_motion_event trace event for making it easy to debug gd_motion_event related issues. Signed-off-by: hikalium --- ui/gtk.c| 2 ++ ui/trace-events | 1 + 2 files changed, 3 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index 810d7fc796..ebae888d4f 100644 --- a/ui/gtk.c +++ b/ui

[PATCH v2 0/2] ui/gtk: Fix motion event scaling issue

2024-05-12 Thread hikalium
Hi there, This is a v2 of the previous series with nit fixes (fixing typo, adding component prefix for each patch subjects, and adding a cover letter). Please take a look. Thank you! hikalium (2): ui/gtk: Add gd_motion_event trace event ui/gtk: Fix mouse/motion event scaling issue with GTK

[Bug 1914849] Re: mprotect fails after MacOS 11.2 on arm mac

2021-02-06 Thread hikalium
I hit the same problem and did some initial investigation with Toshifumi. Here is a more exhaustive test program I wrote based on the post on the Apple Developer Forums and the result shows that very interesting behavior of mmap and mprotect since macOS 11.2. https://gist.github.com/hikalium