Hyprland/src/desktop
Tom Englund 4b4971c06f
internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216)
* framebuffer: avoid gluint overflow

GLuint was being initialized to -1 and rolling over to unsigned int max,
its defined behaviour but very unnecessery. add a bool and use it for
checking if allocated or not.

* opengl: avoid gluint rollover

-1 rolls over to unsigned int max, use 0xFF instead.

* core: big uint64_t to int type conversion

there were a few uint64_t to int implicit conversions overflowing int
and causing UB, make all monitor/workspaces/windows use the new
typedefs. also fix the various related 64 to 32 implicit conversions
going around found with -Wshorten-64-to-32
2024-08-08 21:01:50 +02:00
..
DesktopTypes.hpp internal: new shared_ptr and weak_ptr implementation (#5883) 2024-05-05 17:16:00 +01:00
LayerSurface.cpp internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216) 2024-08-08 21:01:50 +02:00
LayerSurface.hpp internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216) 2024-08-08 21:01:50 +02:00
Popup.cpp xdg-shell: completely rewrite xdg-positioner (#7067) 2024-07-27 21:43:01 +01:00
Popup.hpp xdg-shell: completely rewrite xdg-positioner (#7067) 2024-07-27 21:43:01 +01:00
Subsurface.cpp wayland/core: move to new impl (#6268) 2024-06-08 10:07:59 +02:00
Subsurface.hpp wayland/core: move to new impl (#6268) 2024-06-08 10:07:59 +02:00
Window.cpp internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216) 2024-08-08 21:01:50 +02:00
Window.hpp internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216) 2024-08-08 21:01:50 +02:00
WLSurface.cpp core/surface/buffer: Buffer lock/release fixes (#7110) 2024-07-31 21:47:26 +02:00
WLSurface.hpp layersurface: fixup focus issues in onUnmap 2024-07-27 15:04:03 +02:00
Workspace.cpp internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216) 2024-08-08 21:01:50 +02:00
Workspace.hpp internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216) 2024-08-08 21:01:50 +02:00