Commit b73a008
committed
mintUpdate.py: Fix tray re-activation in Wayland.
window.get_state() & Gdk.WindowState.FOCUSED is not reliable in
Gtk3, and is not un-set when the underlying resources are destroyed
(which happens when the window is 'closed to the tray'. When the
user clicks the icon to show the window after 'closing' it, it
still thinks it's focused, and attempts to hide again.
Use window.is_active() instead, which is updated reliably (and is
what we use in Warpinator for the same purpose).1 parent c47be3d commit b73a008
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
| 1356 | + | |
1362 | 1357 | | |
1363 | 1358 | | |
1364 | 1359 | | |
| |||
0 commit comments