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.
- {aioxlib-0.7.0 → aioxlib-0.7.1}/PKG-INFO +1 -1
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/__init__.py +1 -1
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/display.py +3 -12
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib.egg-info/PKG-INFO +1 -1
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_display.py +1 -1
- {aioxlib-0.7.0 → aioxlib-0.7.1}/LICENSE +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/README.md +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/_extensions.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/api.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/authority.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/bigreq.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/connection.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/constants.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/dbe.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/dri3.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/glx.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/present.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/protocol.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/randr.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/render.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/shm.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib/widgets.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib.egg-info/SOURCES.txt +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib.egg-info/dependency_links.txt +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/aioxlib.egg-info/top_level.txt +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/pyproject.toml +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/setup.cfg +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_api.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_authority.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_bigreq.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_connection.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_constants.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_dbe.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_dri3.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_examples.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_extensions.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_glx.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_present.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_protocol.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_randr.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_render.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_shm.py +0 -0
- {aioxlib-0.7.0 → aioxlib-0.7.1}/tests/test_widgets.py +0 -0
|
@@ -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(
|
|
321
|
+
protocols.append(display.WM_DELETE_WINDOW)
|
|
331
322
|
if take_focus:
|
|
332
|
-
protocols.append(
|
|
333
|
-
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)
|
|
@@ -545,7 +545,7 @@ class TestScreen:
|
|
|
545
545
|
assert payload[1] == 24
|
|
546
546
|
|
|
547
547
|
@pytest.mark.asyncio
|
|
548
|
-
async def
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|