Advertisement
WeltEnSTurm

Untitled

Feb 6th, 2017
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.28 KB | None | 0 0
  1.  
  2. class Atoms {
  3.  
  4.     static Atom opDispatch(string name)(){
  5.         mixin("class Tmp {
  6.             static Atom atom;
  7.             shared static this(){
  8.                 atom = XInternAtom(wm.displayHandle, \"" ~ name ~ "\", false);
  9.             }
  10.         }");
  11.         return Tmp.atom;
  12.     }
  13.  
  14. }
  15.  
  16.  
  17. // somewhere
  18. Atoms._NET_WM_NAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement