In this tutorial, we are going to create a new window and add event listeners to it. If any mouse button is pressed, we are going to quit our application.
Content:
Creating a window
Introduction to XSetWindowAttributes
Understanding some of the window parameters (depth, visual)
Adding event mask to our window
Handling button press event (mouse) to be able to quit our application
X11, linux, xorg, Xwindow system, C, display server
![](https://s2.save4k.ru/pic/oAKrud7Ar4I/maxresdefault.jpg)