summaryrefslogtreecommitdiff
path: root/src/sxwm.c
AgeCommit message (Collapse)Author
2025-06-17Fix(config): correct config reload order and prevent memory leakselbachir-one
- Moved memset after cleanup loop to preserve bind count before freeing - Minor cleanup
2025-06-17relocate snap_coordinatesAbhinav
2025-06-14Improve drag handling: fix swap flicker, add snapping helper, clamp resizeelbachir-one
- Fixed bug in DRAG_SWAP where `last_swap_target` reset each motion event - Added `snap_coordinate()` helper to reduce code duplication in move logic - Enforced minimum window size via `MIN_WINDOW_SIZE` define - Clamped window resize to screen bounds - Removed magic numbers for better configurability and clarity
2025-06-11Refactor tile() for readability, modularity, and bounds safetyelbachir-one
- Reorganized code into clearer logical blocks - Added bounds checks for MAXCLIENTS to avoid overflow - Skipped redundant XConfigureWindow calls for unchanged geometry - Ensured proper handling of stack heights under overfill and underfill - Improved variable naming and structure for maintainability
2025-06-11fix invisible tray apps being focusedAbhinav
before when a tray app, eg steam was closed, it would still be focusable. now it only focuses if the window is mapped
2025-06-10fix windows being mapped twiceAbhinav
when you click a link it used to summon the window to your workspace but now it leaves everything be so you have to go there manually
2025-06-10Merge branch 'main' of https://github.com/uint23/sxwmAbhinav
2025-06-10add _NET_WM_DESKTOP property on client windowsAbhinav
This allows programs like polybar to detect which programs are open on which workspaces and allows for a wider EWMH compliance
2025-06-10add option to use backup keybindsAbhinav
-b and --backup allow the user to now start sxwm with the default backup keybinds
2025-06-08change focus when switching workspacesAbhinav
before when changing workspaces it would keep the focus on the previous workspace if the changed workspace had no windows. fixed
2025-06-07make change_workspace use find_toplevel for changing focusAbhinav
This is to fix a bug that sometimes happens with firefoxs use of subwindows which causes it to not go in focus
2025-06-07add find_toplevel functionAbhinav
This function correctly handles windows like firefox by finding the root window so that clicking on it will focus the window
2025-06-07fix clicking inside window after reload config not workingAbhinav
There was still an XGrabButton(dpy, Button1, 0, root, ...) in the reload config which disables the user from clicking anything inside the windows so I removed that
2025-06-07fix nothing inside window clickableAbhinav
i grabbed Button1 in setup, disabling it to be used by anthing other than the wm which means focus worked but not anything inside the window. fixed by grabbing them for the client instead
2025-06-06Merge pull request #77 from RickConsole/mainAbhinav Prasai
Add multi-monitor focus switching and window moving
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-06add click on window to set focusAbhinav
previously, you had to use the keyboard to set focus on a client, but now you can simply click on a window to set its focus
2025-06-06add monitor switching with shortened config namesRick Console
2025-06-05added monitor switchingRick Console
2025-06-04Merge pull request #58 from werdl/mainAbhinav Prasai
add exec config file keyword
2025-06-04set input focus AFTER mapping to avoid input mixing bugAbhinav
2025-06-04clean up code, add contributions help, v1.6Abhinav
2025-06-04fix segfault on quit but making forloop a while loop bruhAbhinav
2025-06-04fixed parser not parsing quotes properlyAbhinav
2025-06-04better quitting logicAbhinav
2025-06-04fix master cursor not moving with master window when changingAbhinav
2025-06-04fix vertical stack resizingAbhinav
2025-06-03Remove autostart-rerunning from reload_configwerdl
2025-06-03remove hdl_enterAbhinav
2025-06-03added vertical stack resizingAbhinav
2025-06-02remove debug logsAbhinav
2025-06-02added cursor warpingAbhinav
2025-06-02fixed syntax error from removing debug messagesAbhinav
2025-06-01remove DEBUG messagesuint23
2025-06-01adjust syntax of exec config keywordwerdl
2025-05-31fixed comma spetated should_float options.Abhinav
2025-05-31added option for new windows to take focusAbhinav
2025-05-29replace end with breakAbhinav
2025-05-29Merge branch 'main' into mainuint23
2025-05-29allow mod + altAbhinav
2025-05-29fix workspace windows staying unmapepd.Abhinav
2025-05-29fix workspace windows staying unmapepdAbhinav
2025-05-29fix random space under second monitor if reajusted y-positionAbhinav
2025-05-29added proper multi-monitor support.Abhinav
2025-05-29fix double mapping when opening window.Abhinav
2025-05-29unmanage unmapped windows. fix for issue #46Abhinav
2025-05-28improve should_float parsing (make comments and trailing spaces work),werdl
ensure segfaults are no longer a problem
2025-05-23change focus after setting client monitorbobthehuge
2025-05-20Merge pull request #32 from werdl/mainuint23
Multiple should_float entries
2025-05-19multiple should_float entries preliminary workwerdl