Commit graph

380 commits

Author SHA1 Message Date
anomaloushuman
43da6b51ab Preventing orphaned processes from rising from the grave and haunting our window manager.
Turns out, some windows weren’t properly cleaning up after themselves, leaving behind undead nested processes lurking in the shadows of our system. To fix this, I’ve introduced proper PID tracking with a shiny new windowIDToPIDMap, facilitating keeping tabs on which windows are still breathing and which need a swift, merciful execution.

The new cleanupTerminatedWindows() function patrols for these lost souls, checking if their process is actually terminated using kill(0), and if that’s not convincing enough, windowManager will peek into /proc/[pid]/cmdline to verify if they’re who they say they are. If a process is missing or pretending to be something it's not, it is exorcised from our system.

To keep our execution order from turning into a chaotic zombie apocalypse of race conditions, I’ve wrapped windowIDToPIDMap in a std::mutex, ensuring that multiple threads don’t accidentally resurrect the dead while another is trying to bury them.

Lastly, because everyone should respect basic survival instincts, I’ve added error handling for directory creation. No more blindly assuming /tmp/hypr exists—we should check before we start dumping files there, because even the undead deserve some proper housekeeping.

:)
2025-03-11 02:54:54 -05:00
5a29688ca2 cmake: bump minimum version to 3.5
newer cmake complains
2024-03-28 02:12:47 +00:00
Sergey Fedorov
67a3d1f42a
Vector: add required header (#126)
Closes: https://github.com/hyprwm/Hypr/issues/125
2024-03-23 21:15:32 +00:00
Ilari Suhonen
855ef848fe
fix(ewmh): workspace off-by-one (#116) 2023-08-23 23:43:03 +02:00
af4641847b add window_resize_speed to autogen cfg 2023-01-26 10:43:34 +00:00
end-4
d1e83d16c2
Various fixes (#103)
* Update README.md

* Update README.md

* Added relative workspace switching

* Added a haiku to readme

* haiku in readme

* Limit workspace from 1 to 10 (relative switching)

* Fixed workspace animation direction

* move window to relative workspace

* faster split ratio change

* turns out relative workspace is already there lol

* Adjustable splitratio

* removed vscode stuff

* a

* Fixed y resize speed

* clean

* Added a separate config value for resize speed

* Update hypr.conf

* Update hypr.conf

* Apply requested changes by vaxry

* use new config name for RESIZEANIMATIONSPEED
2023-01-25 13:00:56 +00:00
Vaxry
03daf47f50
Merge pull request #100 from wegank/timerid
Fix build on macOS
2022-12-28 14:51:46 +01:00
Weijia Wang
7512a3ab91 Remove librt on macOS 2022-12-28 13:37:36 +01:00
Weijia Wang
08d6af2caf Remove unused timerid 2022-12-28 13:35:18 +01:00
vaxerski
26bef3aa41 added primary and secondary font colors 2022-11-16 17:33:45 +00:00
vaxerski
f3d0904249 fix typo in default config 2022-11-16 17:25:46 +00:00
vaxerski
3e3d943c44
Merge pull request #77 from Jovvik/main
Fixed bar module width
2022-05-25 11:16:28 +02:00
Maxim Mikhaylov
3fc3a138ba Fixed bar module width 2022-05-25 12:02:38 +03:00
vaxerski
ba47d7950f
Merge pull request #74 from Jovvik/main
Added escaping of `{`, `}` and `$`
2022-05-22 09:38:28 +02:00
Maxim Mikhaylov
c2ece0be06 Added escaping of {, } and $ 2022-05-22 02:35:25 +03:00
vaxerski
6cbb4bf312
Merge pull request #73 from Jovvik/main
Added font size to bar
2022-05-22 00:15:50 +02:00
Maxim Mikhaylov
5159508141 Added font size to bar 2022-05-22 00:57:20 +03:00
vaxerski
699afd94e4
Added notice of hyprland to the readme 2022-05-16 17:44:52 +02:00
vaxerski
6cc699e997 Include array in util 2022-05-16 17:04:02 +02:00
vaxerski
762b563e56
Merge pull request #69 from mimmoradi/main
Fix a bux regarding keybindings of X key
2022-04-29 21:46:25 +02:00
vaxerski
62a1805360 fix ooga booga 2022-04-29 21:39:48 +02:00
Mohamad Moradi
46c282bad5 Fix a bux regarding keybindings of X key 2022-04-29 04:59:29 +04:30
vaxerski
8bad02d115 fix fullscreen cut-off when switching workspace 2022-04-28 17:39:40 +02:00
vaxerski
a02646bd4b Small Atom fixes 2022-04-20 17:36:53 +02:00
vaxerski
92d9a2556f Query for keys better with xmodmap 2022-04-17 10:13:06 +02:00
vaxerski
83547e472d default autogen to 0 2022-04-15 21:46:47 +02:00
vaxerski
ca432cc589 Added bar:force_no_tray
typo
2022-04-14 18:24:08 +02:00
vaxerski
1898839d4c I am an idiot, keysym fix 2022-04-12 22:14:04 +02:00
vaxerski
245712664e comment out example config window rules 2022-04-12 15:40:11 +02:00
vaxerski
b52e6ea055 added an option to use keysyms as ints 2022-04-12 15:29:44 +02:00
vaxerski
1667180ac3 fix bitwise operation order in IGNOREDMOD 2022-04-12 15:20:30 +02:00
vaxerski
3518e3ba8a added ignore_mod 2022-04-10 19:54:58 +02:00
vaxerski
6f5172dd32 Added autogenerated config + warning 2022-04-08 22:19:37 +02:00
vaxerski
5b71f65ec8
added discord badge 2022-04-07 21:25:39 +02:00
vaxerski
63e11b9f4f
oops readme 2022-04-07 21:15:35 +02:00
vaxerski
720a607574
added discord link 2022-04-07 21:14:43 +02:00
vaxerski
debf220244 Added mouse resizing for dwindle tiled 2022-04-07 18:30:36 +02:00
vaxerski
1749fc7e7a typo 2022-04-04 21:42:48 +02:00
vaxerski
83d69cb233 Added pinning windows 2022-04-04 21:40:10 +02:00
vaxerski
1a5ed05758 Added nextworkspace lastworkspace handlers 2022-04-04 18:14:23 +02:00
vaxerski
07b9efb114
Mentioned xmodmap in readme 2022-04-03 22:17:01 +02:00
vaxerski
0da4b298c5 Added scratchpads. 2022-04-03 22:02:25 +02:00
vaxerski
0b9a33228b Added mouse support for movewindow (drag to move) 2022-04-03 13:39:30 +02:00
vaxerski
894a9b0e3e Added fullscreen and workspace rules 2022-04-03 12:57:08 +02:00
vaxerski
dd1b2a7a4e Prettify Readme 2022-04-01 21:25:30 +02:00
vaxerski
8d887c8bbc
spacing 2022-03-28 23:15:23 +02:00
vaxerski
bdc8eddf21
Added void instructions 2022-03-28 23:14:52 +02:00
vaxerski
ddb9335111 Added more mods 2022-03-22 22:55:45 +01:00
vaxerski
7a9a5b2427
Mentioned pseudotiling in the readme 2022-03-22 22:35:04 +01:00
vaxerski
ec1cb1e88d
clarified the situation with compositors in the readme 2022-03-22 22:33:14 +01:00