X11 Tutorials - 1 - Creating a Simple Window

preview_player
Показать описание
Hey everyone! Welcome to the first episode of our X11 series. In this tutorial, we try to create a simple window by establishing our connection to Xorg server and mapping our windows to display.

I have purposely written everything in our main program, as we progress i will organize everything more.

Content:
Establishing connection with our Xserver
Getting screen and root window from Xserver
Creating a simple window
Mapping our window to display
Starting our event loop (XEvent)
Cleaning up what we created

X11, linux, xorg, Xwindow system, C, display server
Рекомендации по теме
Комментарии
Автор

This is really nice introduction to X11 programming and i loved it :)

mohammedyassin
Автор

Exactly what I was looking for. Thank you so much!

iAmTheWagon
Автор

Aslinda ilgimi ceken bir konuydu bu konu hakkinda Bir kaynak bulmak cok hos bir sey gercekten. Anlamayacagimi sanmam since i know english wery vell but if i do fail in understanding or if i want to talk more spesfic i can ask questions by using my native language

SpicaSuzuki
Автор

good, seems like you are going to write your version of dwm :d

davititchanturia
Автор

Hi man. I want asking you which distribution linux use and how you created beautiful and big console?

ИльяМартьянов-ии
Автор

Excelent tutorials. What plugins do you use for C programming in vim/neovim?

hugog
Автор

After running the make file in the terminal, a bunch of "Undefined reference" errors appear (XCreateWindow, XNextEvent, XMapWindow, etc.). I completely copied all your files, but the errors still appear.
I have Linux Mint 21, VS Code text editor.

P.S. After some time I found an error in your make file. In the line ${CC} -o $@ ${LDFLAGS} ${OBJ} you need to swap the last two values, i.e. so that it looks like: ${CC} -o $@ ${OBJ} ${LDFLAGS}

mrdixioner
Автор

That was great thank u much.
How I can find the sources please
Thank you a lot

bachirhalitim
Автор

is this the way to create desktop environment?

orbitx
Автор

It’s not grabbing the dpy it doesn’t like the Display*

luciferMorningstar-koqc
Автор

hocam c programlamayı nerde nasıl öğrendin geliştirdin bizlere trick verebilirsen çok mutlu oluruz

mtalhaaygen
Автор

eu fiquei... acho que o Brasil vai ser feliz, mas antes tem que superar a infelicidade... parece que não, mas as pessoas escolhem tomar no c porque não entendem a felicidade... o emocional de quem fez o L (geralmente invertido para quem vê kk) não tem muita ideia de como é um país, mas o barba magnetizou

LucasRibeiro-ntyq