Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <X11/Xlib.h>
  4. #include <X11/Xutil.h>
  5. #include <X11/Xos.h>
  6. #include <X11/Xatom.h>
  7. #include <X11/keysym.h>
  8.  
  9. Display *dis;
  10. Window win;
  11.  
  12. int main() {
  13. dis = XOpenDisplay(NULL);
  14. win = XCreateSimpleWindow(dis, RootWindow(dis, 0), 1, 1, 500, 500, \
  15. 0, BlackPixel (dis, 0), BlackPixel(dis, 0));
  16. XMapWindow(dis, win);
  17. XFlush(dis);
  18. /*Sleep 5 seconds before closing.*/
  19. sleep(5);
  20. return(0);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement