Finn Evers
7ecad2bef9
gpui: Fix window cursor style flickering ( #32596 )
...
Closes #32592
Follow-up to #31965
This PR fixes the cursor style flickering on Linux systems. The issue
arose since the window cursor style was not reused anymore for
subsequent frames after the changes in #31965 . This works on MacOS for
hiding cursors, since they are hidden until the next mouse movement
occurs, which is not the case for other systems.
This PR re-adds this whilst keeping the fixes applied in #31965 . We now
determine the first cursor style that is hovered and continue searching
for a cursor style that should be applied globally. If one to apply for
the whole window is found, we return that cursor style early instead.
Alternatively, we could store window cursor style request in a vector
similar to normal cursor styles. That would require more memory in
exchange for fewer checks which cursor style to apply. I preferred the
approach here, though, but can change this should the other method be
preferred.
CC @smitbarmase since you assigned yourself that issue.
Release Notes:
- Fixed an issue where the cursor would flicker whilst typing.
2025-06-12 15:24:44 +05:30
..
2025-05-29 01:58:40 +00:00
2025-06-11 19:30:03 +00:00
2025-06-06 12:05:27 +00:00
2025-06-09 18:07:22 +00:00
2025-05-16 05:04:36 -04:00
2025-05-20 23:06:07 +00:00
2025-06-09 18:07:22 +00:00
2025-05-21 09:27:54 +00:00
2025-06-09 15:11:01 +00:00
2025-06-09 10:27:21 +00:00
2025-06-11 12:56:23 +00:00
2025-05-26 21:20:41 -03:00
2025-05-28 11:51:21 -04:00
2025-05-20 23:06:07 +00:00
2025-05-30 08:29:52 +00:00
2025-06-09 23:38:39 -07:00
2025-05-30 08:32:54 -07:00
2025-05-26 11:48:50 -04:00
2025-05-26 23:04:31 -04:00
2025-06-09 13:11:57 +02:00
2025-05-20 23:06:07 +00:00
2025-06-09 13:11:57 +02:00
2025-06-11 12:38:12 +02:00
2025-06-05 19:15:06 +00:00
2025-06-04 19:18:12 +00:00
2025-06-05 12:59:22 +00:00
2025-06-09 15:11:01 +00:00
2025-06-09 12:39:44 +02:00
2025-06-11 12:38:12 +02:00
2025-06-11 23:28:45 +00:00
2025-05-20 00:20:00 +00:00
2025-05-22 07:24:46 -04:00
2025-05-14 11:15:27 +02:00
2025-06-12 04:29:34 -04:00
2025-05-20 23:06:07 +00:00
2025-06-06 16:18:05 +03:00
2025-06-04 19:18:12 +00:00
2025-06-12 07:22:58 +00:00
2025-06-06 16:00:09 +00:00
2025-06-11 19:30:03 +00:00
2025-06-11 12:38:12 +02:00
2025-05-20 23:06:07 +00:00
2025-06-11 19:30:03 +00:00
2025-06-10 18:50:57 +00:00
2025-05-17 16:42:45 +00:00
2025-05-23 14:53:53 +00:00
2025-06-06 23:04:49 +00:00
2025-06-06 11:28:07 -04:00
2025-05-12 14:43:14 +00:00
2025-06-09 13:11:57 +02:00
2025-06-03 12:23:01 -04:00
2025-06-10 18:50:57 +00:00
2025-06-03 09:41:45 +02:00
2025-06-05 19:30:34 +00:00
2025-06-12 15:24:44 +05:30
2025-05-26 17:43:57 +00:00
2025-05-20 23:06:07 +00:00
2025-06-10 21:56:29 +00:00
2025-06-03 13:18:29 +02:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-27 21:52:42 +00:00
2025-06-06 20:54:00 +00:00
2025-05-20 23:06:07 +00:00
2025-05-17 16:42:45 +00:00
2025-05-17 16:42:45 +00:00
2025-06-11 04:03:42 +00:00
2025-05-08 14:01:39 +02:00
2025-06-09 18:07:22 +00:00
2025-06-12 08:55:48 +00:00
2025-05-20 23:06:07 +00:00
2025-06-10 18:50:57 +00:00
2025-06-11 20:23:16 +02:00
2025-05-20 23:06:07 +00:00
2025-06-11 22:44:20 +03:00
2025-06-09 11:55:34 +02:00
2025-06-06 21:19:46 +00:00
2025-06-09 13:11:57 +02:00
2025-06-09 13:11:57 +02:00
2025-05-20 23:06:07 +00:00
2025-05-30 08:10:12 -03:00
2025-06-09 10:00:02 +00:00
2025-06-09 13:11:57 +02:00
2025-06-06 16:00:09 +00:00
2025-06-06 06:23:09 +00:00
2025-06-04 14:07:01 +00:00
2025-06-12 08:55:48 +00:00
2025-06-11 08:01:29 +00:00
2025-05-26 23:04:31 -04:00
2025-06-10 18:50:57 +00:00
2025-06-02 21:24:08 +00:00
2025-06-10 18:50:57 +00:00
2025-06-05 19:42:52 +00:00
2025-06-11 23:40:41 +00:00
2025-06-10 18:50:57 +00:00
2025-05-26 23:04:31 -04:00
2025-05-20 23:06:07 +00:00
2025-06-11 23:40:41 +00:00
2025-06-09 13:11:57 +02:00
2025-05-26 17:43:57 +00:00
2025-05-23 14:53:53 +00:00
2025-05-27 16:56:27 +00:00
2025-06-10 22:16:27 +00:00
2025-06-09 18:11:31 -03:00
2025-05-20 23:06:07 +00:00
2025-06-09 13:11:57 +02:00
2025-05-26 11:48:50 -04:00
2025-06-03 14:59:17 -03:00
2025-05-26 23:04:31 -04:00
2025-06-10 18:50:57 +00:00
2025-05-20 23:06:07 +00:00
2025-06-11 19:30:03 +00:00
2025-06-04 17:29:08 +00:00
2025-05-20 23:06:07 +00:00
2025-05-26 23:04:31 -04:00
2025-05-26 13:44:09 +00:00
2025-05-20 23:06:07 +00:00
2025-05-16 17:35:44 +02:00
2025-05-20 23:06:07 +00:00
2025-06-09 13:11:57 +02:00
2025-05-23 20:45:32 +00:00
2025-05-29 16:09:07 +00:00
2025-06-11 16:48:44 -04:00
2025-06-12 01:24:19 +00:00
2025-06-09 13:11:57 +02:00
2025-06-09 18:11:31 -03:00
2025-06-09 13:11:57 +02:00
2025-06-09 19:03:19 +00:00
2025-05-26 18:23:41 +00:00
2025-06-04 17:29:08 +00:00
2025-05-06 10:18:48 +00:00
2025-06-09 19:19:24 +03:00
2025-06-02 16:29:06 +00:00
2025-06-06 16:56:27 -04:00
2025-05-14 23:29:11 +02:00
2025-05-23 19:31:25 +00:00
2025-05-30 15:26:27 +00:00
2025-06-10 20:15:35 -06:00
2025-06-09 06:12:23 -04:00
2025-06-09 13:11:57 +02:00
2025-05-20 23:06:07 +00:00
2025-05-29 15:20:58 -04:00
2025-06-12 04:21:00 -04:00
2025-06-09 13:11:57 +02:00
2025-06-11 15:41:41 +00:00
2025-06-06 06:23:09 +00:00
2025-05-26 11:48:50 -04:00
2025-06-06 00:49:30 -06:00