summaryrefslogtreecommitdiff
path: root/platform/gl/gl-main.c
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2017-03-02 06:15:28 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-03-15 09:47:01 +0100
commitbe98e926dfde735a306ed5913d3d0a8850addad4 (patch)
treeb61a247eb83edf1aae62fbc814c7da209445ac77 /platform/gl/gl-main.c
parent3966550ae8198eef2050c24d87dd7a89d1410ded (diff)
downloadmupdf-be98e926dfde735a306ed5913d3d0a8850addad4.tar.xz
gl: use fix title for X11 class and instance
When creating the GLFW window, filename was used as the title. That makes it impossible to apply window manager rules based on class or instance since each invocation gets a different string based on the filename.
Diffstat (limited to 'platform/gl/gl-main.c')
-rw-r--r--platform/gl/gl-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index 91a75644..a968e8bd 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -150,6 +150,7 @@ static float layout_em = DEFAULT_LAYOUT_EM;
static char *layout_css = NULL;
static int layout_use_doc_css = 1;
+static const char *fix_title = "MuPDFGL";
static const char *title = "MuPDF/GL";
static fz_document *doc = NULL;
static fz_page *page = NULL;
@@ -1478,7 +1479,7 @@ int main(int argc, char **argv)
screen_w = video_mode->width;
screen_h = video_mode->height;
- window = glfwCreateWindow(DEFAULT_WINDOW_W, DEFAULT_WINDOW_H, filename, NULL, NULL);
+ window = glfwCreateWindow(DEFAULT_WINDOW_W, DEFAULT_WINDOW_H, fix_title, NULL, NULL);
if (!window) {
fprintf(stderr, "cannot create glfw window\n");
exit(1);