[MPlayer-cvslog] r34380 - trunk/libvo/x11_common.c
reimar
subversion at mplayerhq.hu
Sat Dec 3 20:06:19 CET 2011
Author: reimar
Date: Sat Dec 3 20:06:19 2011
New Revision: 34380
Log:
X11: update title only on reconfigure instead of at least once per frame.
At least currently such frequent updates are not necessary and they are
a bit of a performance issue, at least when used with X forwarding.
Modified:
trunk/libvo/x11_common.c
Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c Sat Dec 3 19:43:54 2011 (r34379)
+++ trunk/libvo/x11_common.c Sat Dec 3 20:06:19 2011 (r34380)
@@ -1079,6 +1079,8 @@ void vo_x11_create_vo_window(XVisualInfo
Colormap col_map,
const char *classname, const char *title)
{
+ if (vo_wintitle)
+ title = vo_wintitle;
if (WinID >= 0) {
vo_fs = flags & VOFLAG_FULLSCREEN;
vo_window = WinID ? (Window)WinID : mRootWin;
@@ -1117,12 +1119,12 @@ void vo_x11_create_vo_window(XVisualInfo
}
if (flags & VOFLAG_HIDDEN)
goto final;
+ XStoreName(mDisplay, vo_window, title);
if (window_state & VOFLAG_HIDDEN) {
XSizeHints hint;
XEvent xev;
window_state &= ~VOFLAG_HIDDEN;
vo_x11_classhint(mDisplay, vo_window, classname);
- XStoreName(mDisplay, vo_window, title);
vo_hidecursor(mDisplay, vo_window);
XSelectInput(mDisplay, vo_window, StructureNotifyMask);
hint.x = x; hint.y = y;
@@ -1351,8 +1353,6 @@ 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;
}
More information about the MPlayer-cvslog
mailing list