screenoverlay 0.4.2__py3-none-any.whl → 0.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
screenoverlay/__init__.py CHANGED
@@ -5,7 +5,7 @@ Provides blur, black, white, and custom color overlays with minimal latency
5
5
 
6
6
  from .overlay import NativeBlurOverlay as Overlay
7
7
 
8
- __version__ = '0.4.0'
8
+ __version__ = '0.5.0'
9
9
  __author__ = 'Pekay'
10
10
  __all__ = ['Overlay']
11
11
 
screenoverlay/overlay.py CHANGED
@@ -131,9 +131,27 @@ class NativeBlurOverlay:
131
131
  self._command_queue.put('show')
132
132
 
133
133
  def hide(self):
134
- """Hide the overlay (instant, ~1ms)"""
134
+ """
135
+ Hide the overlay and restart for next use (100% reliable, prevents ghost windows)
136
+
137
+ This method:
138
+ 1. Hides the overlay instantly (user sees clear screen ~1ms)
139
+ 2. Stops the overlay process completely (kills any ghost windows)
140
+ 3. Starts a fresh overlay ready for next show() (happens in background ~300ms)
141
+
142
+ This "restart on hide" approach guarantees zero ghost windows by giving
143
+ each detection cycle a fresh overlay process, at the cost of ~300ms
144
+ startup time that happens during safe periods (when screen is clear).
145
+ """
135
146
  if self._command_queue is not None:
147
+ # Hide first (instant for user)
136
148
  self._command_queue.put('hide')
149
+
150
+ # Stop the process completely to prevent ghost windows
151
+ self.stop()
152
+
153
+ # Start fresh overlay for next show() (happens in background)
154
+ self.start()
137
155
 
138
156
  def stop(self):
139
157
  """Stop and cleanup the overlay completely"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: screenoverlay
3
- Version: 0.4.2
3
+ Version: 0.5.0
4
4
  Summary: Cross-platform screen overlay with blur, black, white, and custom modes
5
5
  Home-page: https://github.com/pekay-ai/screenoverlay
6
6
  Author: Pekay
@@ -0,0 +1,7 @@
1
+ screenoverlay/__init__.py,sha256=2v9h_ldhYCxy0VccYkUkDGL6FcngtfPsb9ItzUl5qOQ,256
2
+ screenoverlay/overlay.py,sha256=zfrbTFfplWOilNdOobG7VYF3_YrS0Xga_0qxsXEMs4E,19521
3
+ screenoverlay-0.5.0.dist-info/licenses/LICENSE,sha256=QlEjK4tuMjNEYVlvzaIhxfsCeU8hcGZyuT85cm1YChE,1084
4
+ screenoverlay-0.5.0.dist-info/METADATA,sha256=z_xtjSBLk-98i4ZoInrWrizNmRhCbIRZiGJScXkr2F0,17132
5
+ screenoverlay-0.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ screenoverlay-0.5.0.dist-info/top_level.txt,sha256=kfPL07o_kJ-mlb14Ps2zp_tIYnD8GfsSXlbDxDF6Eic,14
7
+ screenoverlay-0.5.0.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- screenoverlay/__init__.py,sha256=NX7qDYscRGygfi9p6HJC_gT876L8wNpX1f01sS1mxPc,256
2
- screenoverlay/overlay.py,sha256=LRlwYVFTIudri2Z-9cDLNsgpf6Itnl5cCO2M2cDu0qA,18690
3
- screenoverlay-0.4.2.dist-info/licenses/LICENSE,sha256=QlEjK4tuMjNEYVlvzaIhxfsCeU8hcGZyuT85cm1YChE,1084
4
- screenoverlay-0.4.2.dist-info/METADATA,sha256=LgLMK4MIXrDtMx4pFzGRXn6ups6N6jWJ2g1k2g4v90Q,17132
5
- screenoverlay-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- screenoverlay-0.4.2.dist-info/top_level.txt,sha256=kfPL07o_kJ-mlb14Ps2zp_tIYnD8GfsSXlbDxDF6Eic,14
7
- screenoverlay-0.4.2.dist-info/RECORD,,