Skip to content

Instantly share code, notes, and snippets.

@jarrettchisholm
jarrettchisholm / x11_window_pos.patch
Last active December 11, 2015 21:59
x11 window position patch for SFML 2.0
284,286c284,304
< XWindowAttributes attributes;
< XGetWindowAttributes(m_display, m_window, &attributes);
< return Vector2i(attributes.x, attributes.y);
---
> ::Window activeWin, root;
> int xCoordinate, yCoordinate;
> uint width, height, border_width, depth;
> ::Window *children;
> uint childcount;