-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resizing Mattermost sends it crazy #2509
Comments
Note that this even happens when we fullscreen the mattermost application |
The problem is that the UPDATE: #define SCALE_SIZE(type, prop) \
if (mods.prop) \
{ \
mods.prop = std::max(geom::type{1}, mods.prop.value() * inv_scale); \
}
...
SCALE_SIZE(Width, max_width);
SCALE_SIZE(Height, max_height); in UPDATE, UPDATE:
TLDR; this is happening: #include <iostream>
#include <algorithm>
int main()
{
int x = 2147483647;
int y = static_cast<int>(x * 1.f);
int z = std::max(1, y);
std::cout << y << ", " << z << std::endl;
return 0;
}
|
Fixed by #3050 |
mattermost-desktop
snap on a Mir compositor (without hacking it to use Wayland)Expect: window resizes
Actual: window disappears and mattermost hogs a CPU
(This doesn't occur using Wayland, so is likely to do with our Xwayland interaction)
The text was updated successfully, but these errors were encountered: