Commit graph

114 commits

Author SHA1 Message Date
Ricardo Squassina Lee
1341f843e9
Merge branch 'DreamMaoMao:main' into main 2026-02-19 07:07:50 -03:00
DreamMaoMao
68075c0044 feat: support index arg in switch_keyboard_layout 2026-02-19 11:23:08 +08:00
copilot-swe-agent[bot]
0bcc5d7546 Address code review feedback: improve comment clarity and remove duplicate
Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 09:52:08 +00:00
copilot-swe-agent[bot]
2c181fcb21 Translate all Chinese comments to English in source files
- Translate comments in src/client/client.h
- Translate comments in src/config/parse_config.h
- Translate comments in src/data/static_keymap.h
- Translate comments in src/dispatch/bind_define.h
- Translate comments in src/ext-protocol/*.h
- Translate comments in src/fetch/*.h
- Translate comments in src/layout/*.h
- Translate comments in src/mango.c

All Chinese comments have been accurately translated to English
while preserving the technical meaning and context.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 09:50:35 +00:00
copilot-swe-agent[bot]
1350b7787a Final code polish for consistency and correctness
- Use int32_t consistently in all loops
- Add zero-length check before memcpy
- Improve error detection in strtol (comment clarification)
- Ensure null terminator always has space reserved

Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 09:04:20 +00:00
copilot-swe-agent[bot]
969c68b66d Fix remaining memory and buffer issues
- Use memcpy with pointer arithmetic for safe string concatenation
- Track and free allocated strings in spawn error path
- Properly account for null terminator in all buffer operations
- Eliminate potential buffer overflows from strncat edge cases

Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 09:03:32 +00:00
copilot-swe-agent[bot]
5d145cc80f Simplify code based on final review feedback
- Use direct character assignment for constant strings
- Remove unnecessary tracking array and cleanup code
- Simplify string concatenation logic
- Fix length calculation to match actual strncat behavior
- Code is cleaner and more maintainable

Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 09:02:22 +00:00
copilot-swe-agent[bot]
12fe0abca1 Polish security fixes with minor improvements
- Remove redundant null termination for short strings
- Use descriptive variable names in cleanup loop
- Cache strlen results to avoid O(n²) complexity in string concatenation
- Add bounds checks before string operations

Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 09:00:02 +00:00
copilot-swe-agent[bot]
e2649dd84f Final security improvements based on code review
- Add LAYOUT_ABBR_SIZE constant to avoid magic numbers
- Track allocated argv entries to properly free on error
- Simplify strncat bounds checking using strlen for accuracy
- Ensure all allocated memory is freed in error paths

Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 08:58:36 +00:00
copilot-swe-agent[bot]
d017fc4837 Address code review feedback on security fixes
- Fix buffer size for strncpy to match actual buffer (32 bytes)
- Use strtoul instead of strtol for unsigned color values
- Improve strncat bounds checking with accurate length tracking
- Free wordexp results immediately after use instead of batching
- Add strdup for wordexp strings to avoid use-after-free

Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 08:57:08 +00:00
copilot-swe-agent[bot]
9d2f852ec2 Fix critical buffer overflow and memory leak vulnerabilities
- Replace unsafe strcpy() with strncpy() in fetch/common.h
- Replace unsafe strcpy() with strncpy() in config parsing
- Fix buffer overflow from strcat() by adding bounds checking
- Fix memory leak by adding wordfree() for wordexp results
- Add integer overflow validation for strtol() calls
- Add errno checking for all strtol conversions

Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 08:54:42 +00:00
DreamMaoMao
c05eec7f53 feat: support restore stack from non-tile state 2026-02-13 20:02:23 +08:00
DreamMaoMao
711498490b opt: not back to ov tag when view prev tag 2026-02-13 18:11:18 +08:00
DreamMaoMao
faf2e1e9da opt: sync keymap to xwayland after xwayland ready 2026-02-08 12:13:04 +08:00
DreamMaoMao
d9f679a8e3 fix: tagcrossmon not apply in current monitor 2026-01-29 09:49:25 +08:00
DreamMaoMao
49921eadfa feat: add drag_corner drag_warp_cursor 2026-01-21 13:54:55 +08:00
DreamMaoMao
5942c5d807 opt: only disable animation for resizewin tiling window 2026-01-20 13:50:43 +08:00
DreamMaoMao
43257ad49c opt: support center scroller stack in centerwin dispatch 2026-01-19 14:21:28 +08:00
DreamMaoMao
48c466254a feat: optimize focusdir to respect focusstack 2026-01-19 10:38:09 +08:00
DreamMaoMao
57d7801df2 opt: exit stack head client maximize and fullscreen state when toggle scroller stack 2026-01-18 23:31:48 +08:00
DreamMaoMao
00f56fa3aa opt: ignore direction arg if the direction not match the scroller direction 2026-01-18 23:13:43 +08:00
DreamMaoMao
deaa26c779 opt: disable animaiton for resize and move window dispatch 2026-01-18 22:54:01 +08:00
nixpup
e0d69ece59 feat: add scroller stack support 2026-01-18 20:06:27 +08:00
DreamMaoMao
4efb8c5e06 fix: isfloating rule not follow monitor rule 2026-01-08 10:13:21 +08:00
DreamMaoMao
67b37559a8 opt: ensure auto schedule next frame when animaiton not end 2026-01-04 07:18:04 +08:00
DreamMaoMao
2771053ee6 opt: animations logic all use the int type
avoid the coordinates being forcibly limited to positive numbers
2026-01-03 09:37:34 +08:00
DreamMaoMao
89e0805d54 opt: optimize code struct 2026-01-01 12:26:19 +08:00
DreamMaoMao
f749500449 feat: restore the current tag when after chvt 2025-12-29 12:37:40 +08:00
DreamMaoMao
db2151af64 fix: crash when focusmon to invalid monitor 2025-12-16 11:34:52 +08:00
Mental-Vortex
9a2d2397c1 feat: support centerwin in scroller window 2025-12-08 22:14:14 +08:00
DreamMaoMao
e602605fa4 opt: optimize focus change when change monitor 2025-12-04 09:58:16 +08:00
DreamMaoMao
44c271ee52 opt: optimize border color set when change monitor 2025-12-03 21:58:46 +08:00
DreamMaoMao
e965264f3b fix: dont use evenmask 2025-12-03 17:22:27 +08:00
DreamMaoMao
b9952f03b5 opt: change unsigned int to uint32_t 2025-12-02 16:57:24 +08:00
DreamMaoMao
9196e2a50b opt: use event mask to decide whether print ipc message 2025-12-02 16:46:11 +08:00
DreamMaoMao
09c1920515 opt: correct var isminized to isminimized 2025-11-29 17:33:57 +08:00
DreamMaoMao
cdcc64ab5f feat: support scroll maximize and fullscreen window 2025-11-19 12:41:03 +08:00
DreamMaoMao
d85f4375c8 fix: fix border color change when swithc mon focus 2025-11-19 12:41:03 +08:00
DreamMaoMao
17f1ae2463 opt: optmize restore_minimized size and not restore namedscratchpad 2025-11-19 12:41:03 +08:00
DreamMaoMao
0501719604 opt: spawn_on_empty and toggle_named_scratchapd use spawn_shell 2025-11-19 12:41:03 +08:00
DreamMaoMao
e09748764d opt: remove useless normalize keysym convert 2025-11-19 12:41:03 +08:00
DreamMaoMao
d32fecfd23 fix: crash in some crossmon dispatch 2025-11-19 12:41:03 +08:00
DreamMaoMao
f542d5d5e6 opt: disable switch proportion action in some case 2025-11-19 12:41:03 +08:00
DreamMaoMao
5ba7da0570 opt: remove increase_proportion dispatch
should use resizewin to replace it
2025-11-19 12:41:03 +08:00
DreamMaoMao
df46194b5f opt: optimize x11 popup focus ignore 2025-11-07 14:16:10 +08:00
DreamMaoMao
474c704562 opt: optimize xwayland focus ignore judge 2025-11-06 19:50:39 +08:00
DreamMaoMao
40b6f82823 fix: fix ov_tab_mode arg 2025-11-06 14:14:02 +08:00
DreamMaoMao
f8060d2f8f opt: simple keyboard layout switch 2025-11-01 21:42:26 +08:00
DreamMaoMao
d75d819e28 feat: add back switch_keybaord_layout 2025-11-01 21:20:09 +08:00
DreamMaoMao
3ed36a6ea6 break change: remove switch_keyboard_layout dispatch 2025-11-01 19:06:04 +08:00