squassina
5d2f052886
Merge branch 'merge-mangowc-STUDY' into merge-mango
2026-03-01 07:30:29 -03:00
DreamMaoMao
4787402b12
opt: optimize monitorrule check
2026-02-26 13:30:42 +08:00
DreamMaoMao
564df864bf
fix: popup position constrain not work for some app
2026-02-25 15:23:54 +08:00
DreamMaoMao
a28647585f
feat: set dbus env auto
2026-02-24 21:40:26 +08:00
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
Ricardo Squassina Lee
2423285f0b
Merge branch 'DreamMaoMao:main' into main
2026-02-18 15:46:09 -03:00
DreamMaoMao
6924ca8512
feat: add global option prefer_scroller_overspread
2026-02-19 00:00:58 +08: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
Ricardo Squassina Lee
30d6acea0c
Merge pull request #2 from squassina/copilot/fix-security-issues
...
Fix critical security vulnerabilities in string handling and memory management
2026-02-18 06:10:11 -03: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]
3f0c11b068
Translate final Chinese comments in mango.c and parse_config.h
...
Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 09:03:32 +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]
ffa83cd0fc
Translate remaining Chinese comments in parse_config.h to English
...
Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 09:01:48 +00:00
copilot-swe-agent[bot]
21088fe86a
Final refinements for security and performance
...
- Add explicit null termination for consistency
- Optimize string concatenation to avoid redundant strlen calls
- Track actual characters added to maintain O(n) complexity
- Improve code clarity with better comments
Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 09:01:20 +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
copilot-swe-agent[bot]
73995e5828
Improve code readability: refactor animation code and translate comments
...
Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 08:54:36 +00:00
DreamMaoMao
91110efe0e
Merge pull request #645 from jampe/feature-config-isfakefullscreen
...
support isfakefullscreen as windowrule property
2026-02-14 08:46:23 +08:00
DreamMaoMao
53ee82a726
feat: make force_tiled_state as a option
2026-02-12 11:19:39 +08:00
DreamMaoMao
783cb86c56
feat: support match monitor make model serial
2026-02-10 10:31:31 +08:00
DreamMaoMao
b05bc1ce65
opt: add btn_left and btn_right bind check in config check
2026-02-09 11:50:54 +08:00
Daniel Jampen
454145f6e0
support isfakefullscreen as windowrule property
2026-02-08 17:56:26 +01:00
Lin Xianyi
5de87db8ca
feat: add a source-optional keyword
2026-02-08 11:15:16 +08:00
Lin Xianyi
818652d20f
fix: -p exits with failure if there are parse failures
2026-02-07 12:12:13 +08:00
DreamMaoMao
00a7e579c9
fix: miss reset root color when reload config
2026-02-06 07:43:09 +08:00
DreamMaoMao
8e898417a7
opt: key name case insensitive in keybind
2026-02-05 11:06:52 +08:00
DreamMaoMao
65fcd58949
opt: optimize file detect message
2026-02-04 21:50:44 +08:00
DreamMaoMao
8ba259fbb7
opt: avoid opacity flickering in focus animation when open new window
2026-02-04 09:45:26 +08:00
quadratic
336f873d83
fix: uninitialised argument fields when calling mmsg -d
2026-02-03 21:11:41 +01:00
DreamMaoMao
50b67ac539
fix: miss init arg value
2026-02-03 10:15:42 +08:00
DreamMaoMao
0546a2d4c4
opt: allow use comma symbol in spawn shell value
2026-02-03 10:06:26 +08:00
DreamMaoMao
bcee63fa76
feat: add config check in mango cli
2026-02-02 14:54:09 +08:00
DreamMaoMao
672706c71f
fix: not apply vrr disalbe when enable it at the beginning
2026-01-29 11:58:28 +08:00
DreamMaoMao
30692f6da0
feat: add option hotarea_corner
2026-01-28 09:39:27 +08:00
DreamMaoMao
2e6e23633e
break change: remove useless option adaptive_sync
2026-01-28 09:39:27 +08:00
DreamMaoMao
6624d80522
break change: new monitorrule format
2026-01-28 09:39:27 +08:00
DreamMaoMao
49921eadfa
feat: add drag_corner drag_warp_cursor
2026-01-21 13:54:55 +08:00
nixpup
e0d69ece59
feat: add scroller stack support
2026-01-18 20:06:27 +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
471c71f65c
feat: add windowrule option isnoradius
2025-12-20 11:39:53 +08:00
DreamMaoMao
e26e477d6b
Merge pull request #523 from meeeee3/scroll-factor
...
feat: add wheel scroll factor
2025-12-19 16:43:50 +08:00
meeeee3
a8f7dc3e68
feat: add wheel scroll factor
2025-12-19 16:43:21 +08:00
DreamMaoMao
f54d7b3483
break change: inhibit_regardless_of_visibility rename to idleinhibit_ignore_visible
2025-12-19 14:40:32 +08:00
DreamMaoMao
0f861e79a0
fix: avoid using old cursor_mgr in cursor timer
2025-12-13 18:21:58 +08:00
DreamMaoMao
fa4eb322b6
fix: crash when reload_config
2025-12-12 15:41:26 +08:00