diff --git a/src/video/glut.c b/src/video/glut.c index e81cc23..dc2da4c 100644 --- a/src/video/glut.c +++ b/src/video/glut.c @@ -21,6 +21,7 @@ #include #include #include "GServer/video.h" +#include "../../config.h" /* GLUT */ @@ -134,7 +135,7 @@ static int _glut_init(GServerVideoPlugin * plugin) glut->height = 480; glutInit(&argc, argv); glutInitWindowSize(glut->width, glut->height); - glutCreateWindow("GServer GLUT"); + glutCreateWindow(PACKAGE " GLUT"); glutDisplayFunc(_glut_display); glutIdleFunc(_glut_idle); glShadeModel(GL_SMOOTH); diff --git a/src/video/glx.c b/src/video/glx.c index b04e46f..2b8eae7 100644 --- a/src/video/glx.c +++ b/src/video/glx.c @@ -22,6 +22,7 @@ #include #include #include "GServer/video.h" +#include "../../config.h" /* GLX */ @@ -172,8 +173,8 @@ static int _glx_init(GServerVideoPlugin * plugin) CWBorderPixel | CWColormap | CWEventMask, &attr); wdelete = XInternAtom(glx->display, "WM_DELETE_WINDOW", True); XSetWMProtocols(glx->display, glx->window, &wdelete, 1); - XSetStandardProperties(glx->display, glx->window, "GServer GLX", - "GServer GLX", None, NULL, 0, NULL); + XSetStandardProperties(glx->display, glx->window, PACKAGE " GLX", + PACKAGE " GLX", None, NULL, 0, NULL); XMapRaised(glx->display, glx->window); glXMakeCurrent(glx->display, glx->window, glx->context); XGetGeometry(glx->display, glx->window, &wdummy, &x, &y, &glx->width, diff --git a/src/video/project.conf b/src/video/project.conf index a746cde..e093333 100644 --- a/src/video/project.conf +++ b/src/video/project.conf @@ -13,6 +13,7 @@ install=$(PREFIX)/lib/GServer/video [glut.c] cflags=`pkg-config --cflags glut` +depends=../../config.h [glx] type=plugin @@ -22,6 +23,7 @@ install=$(PREFIX)/lib/GServer/video [glx.c] cflags=`pkg-config --cflags glu` +depends=../../config.h [vesa] type=plugin