Hyprland/src/desktop
Tom Englund 28ce0e0f80
misc: a few compiler level performance optimisations (#6559)
* window: use const references instead of copies

use const references instead of wasteful copies and make the = operator
check for self assignment and return early. also use const in all the
other operators.

* listener: pass std::function as const reference

instead of copies pass the std::functions as const references.

* config: dont unnecessarily convert to c_str

getHyprlangConfigValuePtr wants an std::string and we already have an
std::string, dont convert it to a c_str only for it to be converted back
to an std::string.

* buffer: pass attributes as const reference

pass attributes as const reference instead of copies.
2024-06-17 17:37:36 +02:00
..
DesktopTypes.hpp internal: new shared_ptr and weak_ptr implementation (#5883) 2024-05-05 17:16:00 +01:00
LayerSurface.cpp layerSurface: fix layer being refocused every commit with on_demand (#6487) 2024-06-14 11:52:37 +02:00
LayerSurface.hpp layershell: Fix keyboard focus grabs (#4968) (#6394) 2024-06-11 19:35:30 +02:00
Popup.cpp wayland/core: move to new impl (#6268) 2024-06-08 10:07:59 +02:00
Popup.hpp core: move to hyprutils for utils (#6385) 2024-06-11 17:17:45 +02: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 window: improve swallowing functionality 2024-06-15 18:20:41 +02:00
Window.hpp misc: a few compiler level performance optimisations (#6559) 2024-06-17 17:37:36 +02:00
WLSurface.cpp wayland/core: move to new impl (#6268) 2024-06-08 10:07:59 +02:00
WLSurface.hpp wayland/core: move to new impl (#6268) 2024-06-08 10:07:59 +02:00
Workspace.cpp core: move to hyprutils for utils (#6385) 2024-06-11 17:17:45 +02:00
Workspace.hpp core: fix on-empty workspace being called too often (#6026) 2024-05-12 00:03:32 +01:00