More problems deiscovered from the problem child. :) I think these fixes should improve reliability across the board for reading focused windows though. Needs testing.

This commit is contained in:
Storm Dragon committed 2026-11-01 16:22:15 -05:00
1 parent 1c12bc6636
commit 6ed0e36960
4 files changed
+28 -3

No files matched your search

+8 -1
View File
@@ -45,8 +45,9 @@ windows = dict(client=client, other=other, plain=plain, shared=shared,
def configure(action):
frame.change_attributes(override_redirect=False)
frame.configure(x=0, y=0, width=1916, height=994, border_width=0)
client.configure(width=1912, height=974)
client.configure(x=2, y=18, width=1912, height=974)
client.delete_property(extentsAtom)
selected = windows.get(action, client)
if action == "zero-extents":
@@ -60,6 +61,12 @@ def configure(action):
frame.configure(x=-30, y=40)
elif action == "border":
frame.configure(border_width=2)
elif action == "i3-frame":
frame.change_attributes(override_redirect=True)
elif action == "i3-run-dialog":
frame.change_attributes(override_redirect=True)
frame.configure(y=24, width=1916, height=989)
client.configure(y=0, width=1912, height=987)
root.change_property(activeAtom, Xatom.WINDOW, 32,
[0 if action == "empty" else selected.id])
connection.sync()