Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Atoms {
- static Atom opDispatch(string name)(){
- mixin("class Tmp {
- static Atom atom;
- shared static this(){
- atom = XInternAtom(wm.displayHandle, \"" ~ name ~ "\", false);
- }
- }");
- return Tmp.atom;
- }
- }
- // somewhere
- Atoms._NET_WM_NAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement