diff options
author | ptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-12 09:21:53 +0000 |
---|---|---|
committer | ptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-12 09:21:53 +0000 |
commit | ab4bdb64e1010be0b408012a79629d05a663b7a1 (patch) | |
tree | 24d6c4dcafee8b323b7a373cc705bb59c05c82d5 /libvo/x11_common.c | |
parent | 153cac185c2d38aef1c322ea3bfa2b97befbb8d9 (diff) | |
download | mpv-ab4bdb64e1010be0b408012a79629d05a663b7a1.tar.bz2 mpv-ab4bdb64e1010be0b408012a79629d05a663b7a1.tar.xz |
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
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |