Set the default window title from the project name

This commit is contained in:
Pierre Pronchery 2015-11-22 17:16:23 +01:00
parent c7fe35db83
commit c794006e37
3 changed files with 7 additions and 3 deletions

View File

@ -21,6 +21,7 @@
#include <string.h>
#include <GL/glut.h>
#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);

View File

@ -22,6 +22,7 @@
#include <GL/glx.h>
#include <GL/glu.h>
#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,

View File

@ -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