mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-8234 IDE cannot start on Wayland with large scale
Make sure the surface used for the cursor is marked as such prior to being committed in order to receive an exception from enforcing the rule about the buffer size having to be multiple of its scale.
This commit is contained in:
@@ -163,12 +163,12 @@ JNIEXPORT void JNICALL Java_sun_awt_wl_WLToolkit_nativeSetCursor
|
||||
wl_cursor_surface = wl_compositor_create_surface(wl_compositor);
|
||||
|
||||
CHECK_NULL(wl_cursor_surface);
|
||||
wl_pointer_set_cursor(wl_pointer, pointerEnterSerial, wl_cursor_surface,
|
||||
hotspot_x / scale, hotspot_y / scale);
|
||||
wl_surface_attach(wl_cursor_surface, buffer, 0, 0);
|
||||
wl_surface_set_buffer_scale(wl_cursor_surface, scale);
|
||||
wl_surface_damage_buffer(wl_cursor_surface, 0, 0, width, height);
|
||||
wl_surface_commit(wl_cursor_surface);
|
||||
|
||||
wl_pointer_set_cursor(wl_pointer, pointerEnterSerial, wl_cursor_surface,
|
||||
hotspot_x / scale, hotspot_y / scale);
|
||||
wl_surface_commit(wl_cursor_surface);
|
||||
wlFlushToServer(env);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user