Commit Graph

10 Commits

Author SHA1 Message Date
Casey acbf1bce14
Fixed bit depth stuff (is it always BGRA??) 2024-06-06 16:52:45 +03:00
Casey f921c61b23
Taking screenshots now! 2024-06-06 16:37:39 +03:00
Casey cfa2af3d91
Oh my fucking god, fuck xcb and X
Some windows have WM_NAME of 0 bytes, so I have to ask for _NET_WM_NAME
Atom, but some windows have it as XCB_ATOM_STRING and most of them have
it as UTF8_STRING, so I'm just reading UTF-8 one.

And ALSO coordinates from xcb_get_geometry are relative to the parent,
so I have to translate them using xcb_translate_coordinates, which would
be fine, except it completely kills my "queue a bunch of requests and
read responses later" paradigm here. Hence, I'm doing it one. by. one.

Fuck this shit.
2024-06-06 16:04:22 +03:00
Casey a5cf7cabf3
Trying to list all windows from _NET_CLIENT_LIST 2024-06-06 14:48:57 +03:00
Casey 36cb48c650
Taking screenshot of one window by ID
TODO: iterate over entire tree and take separate screenshots of each
window
2024-06-05 23:19:03 +03:00
Casey ee68131914
Mouse following thing and template fix 2024-05-30 12:28:06 +03:00
Casey 058a007265
Added cell simulation thingie 2024-05-29 13:19:08 +03:00
Casey 84b7493a4a
Separate placeholder for project and program names 2024-05-29 12:31:12 +03:00
Casey 37ff1782bb
Fixed templating 2024-05-29 12:29:25 +03:00
Casey 84fdb908ef
Added project generator and some templates 2024-05-29 12:25:42 +03:00