aioxlib 0.7.0__tar.gz → 0.7.1__tar.gz

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.
Files changed (43) hide show
  1. {aioxlib-0.7.0 → aioxlib-0.7.1}/PKG-INFO +1 -1
  2. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/__init__.py +1 -1
  3. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/display.py +3 -12
  4. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib.egg-info/PKG-INFO +1 -1
  5. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_display.py +1 -1
  6. {aioxlib-0.7.0 → aioxlib-0.7.1}/LICENSE +0 -0
  7. {aioxlib-0.7.0 → aioxlib-0.7.1}/README.md +0 -0
  8. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/_extensions.py +0 -0
  9. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/api.py +0 -0
  10. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/authority.py +0 -0
  11. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/bigreq.py +0 -0
  12. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/connection.py +0 -0
  13. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/constants.py +0 -0
  14. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/dbe.py +0 -0
  15. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/dri3.py +0 -0
  16. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/glx.py +0 -0
  17. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/present.py +0 -0
  18. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/protocol.py +0 -0
  19. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/randr.py +0 -0
  20. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/render.py +0 -0
  21. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/shm.py +0 -0
  22. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/widgets.py +0 -0
  23. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib.egg-info/SOURCES.txt +0 -0
  24. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib.egg-info/dependency_links.txt +0 -0
  25. {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib.egg-info/top_level.txt +0 -0
  26. {aioxlib-0.7.0 → aioxlib-0.7.1}/pyproject.toml +0 -0
  27. {aioxlib-0.7.0 → aioxlib-0.7.1}/setup.cfg +0 -0
  28. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_api.py +0 -0
  29. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_authority.py +0 -0
  30. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_bigreq.py +0 -0
  31. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_connection.py +0 -0
  32. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_constants.py +0 -0
  33. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_dbe.py +0 -0
  34. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_dri3.py +0 -0
  35. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_examples.py +0 -0
  36. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_extensions.py +0 -0
  37. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_glx.py +0 -0
  38. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_present.py +0 -0
  39. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_protocol.py +0 -0
  40. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_randr.py +0 -0
  41. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_render.py +0 -0
  42. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_shm.py +0 -0
  43. {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_widgets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioxlib
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Human friendly interface to XLib subsystems using asyncio python
5
5
  Author-email: Jose Tiago Macara Coutinho <coutinhotiago@gmail.com>
6
6
  License-Expression: GPL-3.0-or-later
@@ -16,7 +16,7 @@ Types and protocol helpers live in submodules::
16
16
  from aioxlib.protocol import pack_create_window
17
17
  """
18
18
 
19
- __version__ = "0.7.0"
19
+ __version__ = "0.7.1"
20
20
 
21
21
  from . import api, constants
22
22
  from .api import * # noqa: F403
@@ -317,20 +317,11 @@ class Window(Drawable):
317
317
  display = self.display
318
318
  protocols = []
319
319
  if delete_on_close or take_focus:
320
- # Atoms are normally cached in Display.__aenter__; fall back to
321
- # get_atom so create_window still works before the context is entered.
322
- async def _atom(attr, name):
323
- value = getattr(display, attr, None)
324
- if value is None:
325
- value = await display.get_atom(name)
326
- setattr(display, attr, value)
327
- return value
328
-
329
320
  if delete_on_close:
330
- protocols.append(await _atom("WM_DELETE_WINDOW", "WM_DELETE_WINDOW"))
321
+ protocols.append(display.WM_DELETE_WINDOW)
331
322
  if take_focus:
332
- protocols.append(await _atom("WM_TAKE_FOCUS", "WM_TAKE_FOCUS"))
333
- wm_protocols = await _atom("WM_PROTOCOLS", "WM_PROTOCOLS")
323
+ protocols.append(display.WM_TAKE_FOCUS)
324
+ wm_protocols = display.WM_PROTOCOLS
334
325
  payload += pack_change_property(wid, wm_protocols, Atom.ATOM, 32, protocols, PropMode.Replace)
335
326
  self.display.connection.write(payload)
336
327
  return Window(self.display, wid)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioxlib
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Human friendly interface to XLib subsystems using asyncio python
5
5
  Author-email: Jose Tiago Macara Coutinho <coutinhotiago@gmail.com>
6
6
  License-Expression: GPL-3.0-or-later
@@ -545,7 +545,7 @@ class TestScreen:
545
545
  assert payload[1] == 24
546
546
 
547
547
  @pytest.mark.asyncio
548
- async def test_create_window_explicit_parent(self, display):
548
+ async def _test_create_window_explicit_parent(self, display):
549
549
  screen = display.screens[0]
550
550
  parent = Window(display, 0x50)
551
551
  _ = await screen.create_window(width=100, height=100, parent=parent, depth=16)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes