Non-resizeable GLFW window shrinks into oblivion #12200
Replies: 7 comments 11 replies
-
|
can I get a WAYLAND_DEBUG=1? |
Beta Was this translation helpful? Give feedback.
-
|
This is yet another manifestation of libdecor 0.2.4, and adding Discord has shown something similar also happens in eglgears, vkgears and godot with libdecor 0.2.4. |
Beta Was this translation helpful? Give feedback.
-
|
What Dregu said seems right. Here are the logs anyway though: |
Beta Was this translation helpful? Give feedback.
-
|
as far as ive digged ive comed to the conclusion https://gitlab.freedesktop.org/libdecor/libdecor/-/commit/700aa1e6fb5dddc085d94dddf480e74b84c0ad88 changed so it applies window max/min size on fullscreen and also maximized applications. however maximized applications does not have borders. the libdecor code incorporates border sizes even if maximized and sends a xdg_surface::set_window_geometry with a -37 offset for this. meaning in hyprland everything is now -37 offset even tho it has no borders, would be same issue in other compositors if being set maximized. firefox had a similiar issue in 2018 https://hg-edge.mozilla.org/mozilla-central/rev/61ef04097971 that reset this offset on maximized. so yeah looks like libdecor issue |
Beta Was this translation helpful? Give feedback.
-
|
thanks for all the input on this issue. i was experiencing the same. while we wait for libdecor to fix it: setting the hint didn't work for me, but as a workaround i set the client fullscreen mode in note that in hyprland-git (on arch) i see the offset only during mouse move events, not during rendering or mouse down events. the above config line makes it work as expected until i fullscreen and unfullscreen my window. |
Beta Was this translation helpful? Give feedback.
-
|
Is there going to be a fix for this? I don't exactly want to set window rules to make my program work as a long-term solution. |
Beta Was this translation helpful? Give feedback.
-
|
https://gitlab.freedesktop.org/libdecor/libdecor/-/merge_requests/173 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
(code take from here)
Run this with
g++ -o it.exe -lglfw -lGL -lGLEW it.cpp && ./it.exeand you'll see what I mean. Then it displays correctly if you comment out line 36.Beta Was this translation helpful? Give feedback.
All reactions