summaryrefslogtreecommitdiff
path: root/src/parser.c
AgeCommit message (Collapse)Author
2025-06-07Fix memory leaks, buffer overflows, and add resource cleanup in parser()elbachir-one
- Fixed potential memory leaks in `should_float` allocation and exec command duplication. - Prevented buffer overflows by using `snprintf` and properly bounded copies. - Ensured all allocated memory is freed on parser failure for robust cleanup.
2025-06-06clean up exec commandAbhinav
sxwm.c: before, some of the parsing logic of the exec command was located in setup, but i have relocated it to a seperate function called startup_exec. i have also replaced the manual spawning of windows with the spawn function parser.c: added the missing parsing logic of exec and simplified it
2025-06-04formatting and remove warningAbhinav
2025-06-04Merge pull request #58 from werdl/mainAbhinav Prasai
add exec config file keyword
2025-06-04clean up code, add contributions help, v1.6Abhinav
2025-06-04fixed parser not parsing quotes properlyAbhinav
2025-06-03added vertical stack resizingAbhinav
2025-06-02allow shift and control as modifiersAbhinav
2025-06-02added cursor warpingAbhinav
2025-06-01remove DEBUG messagesuint23
2025-06-01adjust syntax of exec config keywordwerdl
2025-05-31add exec config file keywordwerdl
2025-05-31fixed comma spetated should_float options.Abhinav
2025-05-31Merge pull request #56 from elbachir-one/mainuint23
Improved function logic for clarity and maintainability
2025-05-31added option for new windows to take focusAbhinav
2025-05-30Improved function logic for clarity and maintainabilityelbachir-one
Fixed - Corrected double increment bug in `should_floatn` - Ensured `should_float` entries are properly parsed and quoted strings handled - Prevented out-of-bounds access in float parsing - Added fallback error if no config file is found - Improved error messages for better diagnostics - Replaced unnecessary heap allocation with stack-safe operations
2025-05-29removed if (0) {} in favour of just a semi-colonAbhinav
2025-05-29Merge branch 'main' into mainuint23
2025-05-29allow mod + altAbhinav
2025-05-29added proper multi-monitor support.Abhinav
2025-05-28improve should_float parsing (make comments and trailing spaces work),werdl
ensure segfaults are no longer a problem
2025-05-28Add OpenBSD installation instructionswerdl
2025-05-20Merge pull request #32 from werdl/mainuint23
Multiple should_float entries
2025-05-19search /usr/local/share/sxwmrcwerdl
2025-05-19add multiple should_float optionswerdl
2025-05-19multiple should_float entries preliminary workwerdl
2025-05-18it works nowwerdl
2025-05-17use xdg config dirswerdl
2025-05-03update spawn function && binds now work with multiple atgsuint23
2025-05-03update parser so binds will not overlap from pervious binds + parser is more ↵uint23
simple
2025-04-29bruh bruh forgot to set master_width to motion throttle bruh.... also ↵uint23
updated tile function!
2025-04-29discard use of macorsuint23
2025-04-28update formatting (using proper formatting) + WM_TAKE_FOCUSuint23
2025-04-28parseruint23
2025-04-28parser not stable, testinguint23