←⌂ / ←/devlog

14 — Portable repositioning window

xcb win32

Created: 16 Apr 2026, Modified: 18 Apr 2026

WIP - this devlog is unfinished

Linux - X

There are two options for X, Xlib (sometimes called just X11) and XCB. The former is older and written by hand, the latter is generated from the specs. Technically there could be others, because rather than a C API like in win32, the X server uses a network protocol, and the aforementioned are like C bindings for it.

XCB is preferred: It’s more verbose / a little bit harder to get started, but it gives you more control, ability to make non-blocking requests (the gains in speed can be enormous when you need to send many requests at once), and has a more logical and consistent interface (less idiosyncrasies).

TODO maybe show the same thing in both of them

I stayed up late reading this xcb tutorial

I have experience in win32 and it seems pretty familiar to me, other than

This series of articles by Chuan Ji about window managers is also useful. Notes:

Linux - Wayland

maybe impossible?

Windows

tested on windows 10 and windows 98

macOS

Improve this page / Leave a message.

←⌂ / ←13 — Microphone threshold notification /

Linked discussion