Showing the changes to TOOLS/lua/pause-when-minimize.lua (1 of 2 files). Show all
Unified · Split
| @@ -2,8 +2,6 @@ · 1 unmodified line | ||
| 2 | 2 | -- if it's brought back again. If the player was already paused when minimizing, |
| 3 | 3 | -- then try not to mess with the pause state. |
| 4 | 4 | |
| 5 | −-- Note: currently works with X11 or OS X only. | |
| 6 | − | |
| 7 | 5 | local did_minimize = false |
| 8 | 6 | |
| 9 | 7 | mp.observe_property("window-minimized", "bool", function(name, value) |