From be98e926dfde735a306ed5913d3d0a8850addad4 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 2 Mar 2017 06:15:28 +0100 Subject: 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. --- platform/gl/gl-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'platform/gl/gl-main.c') 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); -- cgit v1.2.3