python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to stop the execution of a running code in x11
I have a program that draws on a x11 window and I'd like to quit it as soon as I press any key.
With the code I have, I cannot stop the program with a keypress until the for loop has finished drawing ...
Skopas
Votes: 0
Answers: 1
`select` works but `kqueue` doesn't when waiting on X11 connection
This blocks until there's an X11 event available:
int x11_fd = ConnectionNumber(display);
fd_set in_fds;
FD_ZERO(&in_fds);
FD_SET(x11_fd, &in_fds);
select(x11_fd + 1, &in_fds, NULL, NULL, ...
Name McChange
Votes: 0
Answers: 1
If I have an x11 "Window", how can I tell if it is the root window?
If I have an x11 "Window", how can I tell if it is the root window?
I've found a few examples of enumerating windows, but that sounds like more than should be necessary. Can 'win' be checke...
KJ7LNW
Votes: 0
Answers: 0
How to get the monitor number using X11
I am getting information about monitors using XRRGetMonitors.
However, I have no information about the number of monitors.
I need monitor numbers as in the system (for example, in the GNOME settings)
...
Oleg Lebedev
Votes: 0
Answers: 1