Skip to content

Commit

Permalink
Revert "core: set wayland size from pending_size"
Browse files Browse the repository at this point in the history
This reverts commit cc6ea87.

This is no longer needed because it was solving a temporarily solving
a problem that was permanently fixed by commit bc2fd83.
  • Loading branch information
joshua-holmes committed Nov 9, 2024
1 parent 719c698 commit c7753cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/linux/Wayland.zig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ state: *Core,
core: *Core,
title: [:0]const u8,
size: *Core.Size,
pending_size: ?Core.Size = null,
surface_descriptor: *gpu.Surface.DescriptorFromWaylandSurface,
configured: bool = false,

Expand Down Expand Up @@ -744,10 +743,6 @@ const xdg_surface_listener = struct {
wl.configured = true;
}

if (wl.pending_size) |pending_size| {
wl.size.* = pending_size;
wl.pending_size = null;
}
setContentAreaOpaque(wl, wl.size.*);
}

Expand All @@ -765,7 +760,7 @@ const xdg_toplevel_listener = struct {
_ = states;

if (width > 0 and height > 0) {
wl.pending_size = .{ .width = @intCast(width), .height = @intCast(height) };
wl.size.* = .{ .width = @intCast(width), .height = @intCast(height) };
}
}

Expand Down

0 comments on commit c7753cb

Please sign in to comment.