Skip to content

Commit

Permalink
Remove the now unused MSS.display class variable from GNU/Linux imple…
Browse files Browse the repository at this point in the history
…mentation

Finalisation of 59c2259.
  • Loading branch information
BoboTiG committed Jun 30, 2020
1 parent 89a1a39 commit c03570b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ darwin.py
linux.py
--------
- Added ``MSS.has_extension()``
- Removed ``MSS.display``
- Renamed ``MSS.grab()`` to ``MSS._grab_impl()``
- Renamed ``MSS.monitors`` to ``MSS._monitors_impl()``

Expand Down
4 changes: 0 additions & 4 deletions mss/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ class MSS(MSSBase):

__slots__ = {"drawable", "root", "xlib", "xrandr"}

# Class attribute to store the display opened with XOpenDisplay().
# Instancied one time to prevent resource leak.
display = None

# A dict to maintain *display* values created by multiple threads.
_display_dict = {} # type: Dict[threading.Thread, int]

Expand Down

0 comments on commit c03570b

Please sign in to comment.