Print message on system without X11
This commit is contained in:
parent
a43958f4f0
commit
ea2001e6e5
|
@ -30,7 +30,8 @@ char **argv;
|
||||||
|
|
||||||
mywindow=XCreateSimpleWindow(mydisplay,
|
mywindow=XCreateSimpleWindow(mydisplay,
|
||||||
DefaultRootWindow(mydisplay),
|
DefaultRootWindow(mydisplay),
|
||||||
myhint.x, myhint.y, myhint.width, myhint.height, 5,
|
myhint.x, myhint.y, myhint.width,
|
||||||
|
myhint.height, 5,
|
||||||
myforeground, mybackground );
|
myforeground, mybackground );
|
||||||
XDestroyWindow(mydisplay, mywindow);
|
XDestroyWindow(mydisplay, mywindow);
|
||||||
XCloseDisplay(mydisplay);
|
XCloseDisplay(mydisplay);
|
||||||
|
@ -40,8 +41,11 @@ char **argv;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include "stdio.h"
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
printf("No X on this computer\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue