Commit f0c9abb
WongSaang
fix(linux): show window before setting click-through to prevent GTK panic
On Linux/GTK, `set_ignore_cursor_events(true)` calls
`window.window().unwrap()` in tao to access the underlying GdkWindow.
If the window hasn't been shown/realized yet, the GdkWindow is None,
causing a panic at runtime.
Move `window.show()` before `set_ignore_cursor_events(true)` so the
GdkWindow exists when the input shape region is applied.1 parent 2bd92bd commit f0c9abb
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 270 | + | |
| 271 | + | |
274 | 272 | | |
275 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
0 commit comments