Wayland niri: Fix 250ms delay on startup when using scale 1

We special case Hyprland, hopefully the special casing can be removed
once https://github.com/hyprwm/Hyprland/issues/9126 is fixed.

Fixes #8236
This commit is contained in:
Kovid Goyal
2025-01-21 16:39:18 +05:30
parent 447fe503bf
commit 0527db876b
3 changed files with 31 additions and 7 deletions

3
glfw/wl_platform.h vendored
View File

@@ -178,7 +178,8 @@ typedef struct _GLFWwindowWayland
struct org_kde_kwin_blur *org_kde_kwin_blur;
bool has_blur, expect_scale_from_compositor, window_fully_created;
struct {
bool surface_configured, fractional_scale_received, preferred_scale_received;
bool surface_configured, preferred_scale_received;
unsigned fractional_scale_event_count;
} once;
struct wl_buffer *temp_buffer_used_during_window_creation;
struct {