diff options
Diffstat (limited to 'examples/viewer-x.c')
-rw-r--r-- | examples/viewer-x.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/viewer-x.c b/examples/viewer-x.c index 18cb9ff8..7327ab7f 100644 --- a/examples/viewer-x.c +++ b/examples/viewer-x.c @@ -90,6 +90,7 @@ main (int argc, char **argv) XSizeHints size_hints; unsigned int quit_keycode; unsigned int borders_keycode; + const char *title; g_type_init(); @@ -111,9 +112,11 @@ main (int argc, char **argv) XSelectInput (display, window, ExposureMask | KeyPressMask); XMapWindow (display, window); + title = get_options_string (); XmbSetWMProperties (display, window, - get_options_string (), + title, NULL, NULL, 0, NULL, NULL, NULL); + g_free (title); memset ((char *)&size_hints, 0, sizeof (XSizeHints)); size_hints.flags = PSize | PMaxSize; |