From ab4bdb64e1010be0b408012a79629d05a663b7a1 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 12 Nov 2009 09:21:53 +0000 Subject: Added -name, -title and -use-filename-title options and implementation in X11 vos git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29904 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libvo/x11_common.c') diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 1c8a2785c9..d1911401ce 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -738,7 +738,7 @@ void vo_x11_classhint(Display * display, Window window, char *name) XClassHint wmClass; pid_t pid = getpid(); - wmClass.res_name = name; + wmClass.res_name = vo_winname ? vo_winname : name; wmClass.res_class = "MPlayer"; XSetClassHint(display, window, &wmClass); XChangeProperty(display, window, XA_NET_WM_PID, XA_CARDINAL, 32, @@ -1335,6 +1335,9 @@ int vo_x11_update_geometry(void) { if (w <= INT_MAX && h <= INT_MAX) { vo_dwidth = w; vo_dheight = h; } XTranslateCoordinates(mDisplay, vo_window, mRootWin, 0, 0, &vo_dx, &vo_dy, &dummy_win); + if (vo_wintitle) + XStoreName(mDisplay, vo_window, vo_wintitle); + return depth <= INT_MAX ? depth : 0; } -- cgit v1.2.3