Commit f8388ec
committed
joystickstatuswindow: defer deletion of window upon close
Defer deleting the window when it's closed until after the main loop has
run. This prevents a segfault when the window is closed for
controllers with accelerometers and gyroscopes, such as DualSense
controllers.
Signed-off-by: Sean Cross <sean@xobs.io>1 parent ab27f58 commit f8388ec
2 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments