File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
sources/Platform/Linux/Wayland Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 30
30
#include " protocols/viewporter-client-protocol.h"
31
31
32
32
#include " LinuxWindowWayland.h"
33
- #include " LinuxDisplayWayland.h"
34
33
#include " LinuxWaylandState.h"
35
34
36
35
@@ -97,8 +96,10 @@ static void XDGTopLevelHandleConfigureCallback(
97
96
98
97
LinuxWindowWayland::State& state = window->GetState ();
99
98
100
- if (width != 0 && height != 0 && (width != state.size .width || height != state.size .height ))
101
- window->SetSizeInternal (Extent2D{ width, height });
99
+ const Extent2D newSize = Extent2D{ static_cast <uint32_t >(width), static_cast <uint32_t >(height) };
100
+
101
+ if (width != 0 && height != 0 && newSize != state.size )
102
+ window->SetSizeInternal (newSize);
102
103
}
103
104
104
105
static void XDGTopLevelHandleCloseCallback (void * userData, xdg_toplevel* toplevel)
You can’t perform that action at this time.
0 commit comments