Commit 8181742
committed
Fix tray icon not appearing on Windows 10 (#350)
- Guard tray_enable_dark_mode() with SEH in native code to catch access
violations from the undocumented uxtheme.dll ordinal 135
- Catch Throwable (not just Exception) in WindowsTrayManager tray thread
- Move initLatch.countDown() into finally block so the calling thread is
never deadlocked and can fall back to AWT gracefully1 parent 9639a29 commit 8181742
2 files changed
Lines changed: 8 additions & 4 deletions
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| |||
0 commit comments