summaryrefslogtreecommitdiff
path: root/src/protocols/GlobalShortcuts.cpp
Commit message (Collapse)AuthorAgeFilesLines
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-6/+6
| | | now we roll loops at blazing constified speed.
* protocols: refactor protocol logging to a macro (#7324)Tom Englund2024-08-151-2/+0
| | | | | | this avoids the usage of the unique_ptr PROTO::protocol before it has been constructed incase one wants to log something inside the constructor itself, move the logging to macros and print file:linenumber on ERR,CRIT,WARN and classname on the rest of the levels.
* protocols: Move globalshortcuts impl (#7102)Ikalco2024-07-301-104/+39
| | | | | | | * move global shortcuts to hyprwayland-scanner * remove wayland-scanner from deps * fix the thing
* core: add a destructor to CHyprOpenglImpl and avoid wl_container_of ↵Tom Englund2024-07-291-5/+8
| | | | | | | | | | | | | | | undefined behaviour (#7101) * protocols: avoid undefined behaviour in C macro to safely use wl_container_of with a class the class has to be no virtual functions, no inheritance, and uniform access control (e.g all public) work around this by putting this into a destroywrapper struct. * opengl: clean memory on destruction add a destructor and free the allocated memory and close the fd
* core: Properly shutdown wl display (#7018)Ikalco2024-07-241-2/+9
| | | | | | | * correctly destroy wayland globals * properly shutdown and cleanup hyprland * appease the nitpick gods and some comments
* GlobalShortcuts protocol impl (#1886)Vaxry2023-04-091-0/+151
Implements the `hyprland-global-shortcuts-v1` protocol --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>