Jump to content

Good learning material for interacting with X11 in C++

Nineballo

Alrighty so ill make this quick, cause im probably just being an idiot and cant find it.

 

Does X11 have any C++ documentation / Learning material?

If it does ill go read that, and if not could you point me in the general direction for learning how it all works/how to do the stuff below.

 

If I can figure these out I should have a good enough understanding to do pretty much whatever I need to do so if general documentation dosent pan out hopefully someone knows something specific...

- Simulating a keypress

- Simulating mouse movement

- Reading Keyboard input

- Selecting the window to read and write to based off its name, the currently active window, and just plain globaly.

Spoiler

CPU: 5800x

GPU: 1070ti

HDD: Seagate 3TB
SSD: 1TB WD NVME

RAM: 32GB ddr4 3200

HEADPHONES: DT990 pro 250ohm limited edition black

MONITER: BenQ xl2536

CASE: s340 elite hyperbeast

KEYBOARD: nk87- zilent switches

MOUSE: G403 Hero

 

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, kompetenzbolzen said:

https://www.x.org/releases/current/doc/libX11/libX11/libX11.html

 

Also what might help is finding a simple window manager and look at the code

Alrighty, thanks for the docs and im definatly gonna go poke around at one to see the implementation. 

Spoiler

CPU: 5800x

GPU: 1070ti

HDD: Seagate 3TB
SSD: 1TB WD NVME

RAM: 32GB ddr4 3200

HEADPHONES: DT990 pro 250ohm limited edition black

MONITER: BenQ xl2536

CASE: s340 elite hyperbeast

KEYBOARD: nk87- zilent switches

MOUSE: G403 Hero

 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Nineballo said:

Alrighty, thanks for the docs and im definatly gonna go poke around at one to see the implementation. 

https://xcb.freedesktop.org/

There also is another implementation of the X protocol in C. supposedly easier

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, kompetenzbolzen said:

https://xcb.freedesktop.org/

There also is another implementation of the X protocol in C. supposedly easier

Alrighty ill give it a read through, if it is easier that would be cool cause xlib seems kinda massive / complicated...

Spoiler

CPU: 5800x

GPU: 1070ti

HDD: Seagate 3TB
SSD: 1TB WD NVME

RAM: 32GB ddr4 3200

HEADPHONES: DT990 pro 250ohm limited edition black

MONITER: BenQ xl2536

CASE: s340 elite hyperbeast

KEYBOARD: nk87- zilent switches

MOUSE: G403 Hero

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×