#include <X11/extensions/XTest.h>
int main() {
/* Fake the pointer movement to new relative position */
Display dpy = XOpenDisplay(NULL);
XTestFakeMotionEvent(dpy, 0, 300, 300, CurrentTime);
XSync(dpy, 0);
return 0;
}
and ran the command "d++ x_stuff.dpp" which resulted in:
Error: Could not execute `dmd ./x_stuff.d -ofx_stuff`:
./x_stuff.d(1231): Error: { } expected following `struct` declaration
./x_stuff.d(1231): Error: { } expected following `struct` declaration
./x_stuff.d(1231): Error: declaration expected, not `(`
./x_stuff.d(10621): Error: unrecognized declaration
Line 1231 is:
struct struct (anonymous at /usr/include/X11/Xlib.h:493:9)
I thought I would tackle the problem introduced by Murilo Miranda at https://www.facebook.com/groups/ProgrammingInDlang/?multi_permalinks=1196551170736883%2C1196081524117181%2C1195634324161901%2C1195580357500631¬if_id=1588807395656256¬if_t=group_activity&ref=notif
I created x_stuff.dpp:
and ran the command "d++ x_stuff.dpp" which resulted in:
Line 1231 is:
and 10621 is: