Skip to content

Instantly share code, notes, and snippets.

View ColleagueRiley's full-sized avatar

Riley Mabb ColleagueRiley

View GitHub Profile
@ColleagueRiley
ColleagueRiley / RGFW_vs_GLFW.md
Last active January 1, 2025 12:19
RGFW vs GLFW
@andrew-harter
andrew-harter / README.md
Last active May 18, 2025 16:25
Barebones X11 Smooth Resizing

Barebones X11 Smooth Resizing

This example illustrates how you can use the X11 XSync extension (not to be confused with XSync()) to achieve smooth interactive resizing on the majority of X environments, assuming your program can redraw fast enough.

DISCLAIMER: This example shows only the basic usage of XSync using a single counter, which is the bare minimum required to support smooth resizing.

Basic Rundown:

  1. Indicate that your client is willing to receive sync requests:
  • Add _NET_WM_SYNC_REQUEST to your window's WM_PROTOCOLS.