e42.uk Circle Device

 

Quick Reference

X11 Programming

X11 Programming

Recently I had the need to perform some common X operations programmatically, this included:

  • Changing the current Workspace
  • Closing a window (nicely, I did not want to just kill the process)

This lead to me learning a little about the various X11 messages, specifically:

_NET_CURRENT_DESKTOP
WM_PROTOCOLS
WM_DELETE_WINDOW

I also used XGetWMName which allowed me to find the window I wanted to close!

References

Quick Links: Techie Stuff | General | Personal | Quick Reference