x11_common: fix for reconfig with pos/xineramascreen set
commit106c5f99895fefaf5386f7a4a8ddf6e3d646f1fa
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Thu, 3 Feb 2011 19:49:12 +0000 (3 21:49 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Thu, 3 Feb 2011 19:49:12 +0000 (3 21:49 +0200)
tree7c5d723ce23dd926ca5dd8d95c58b5f3cb87ce37
parentc24d4e9ec29cb05d2e5ac557d9a0ed89280151c6
x11_common: fix for reconfig with pos/xineramascreen set

vo_x11_create_vo_window() only called vo_x11_update_geometry() if no
window position had been specified by -geometry or -xineramascreen, to
avoid overwriting the specified position with values from the existing
window. However window size should be initialized to the existing
window here, and setting new window title for -use-filename-title is
also done in vo_x11_update_geometry() (for whatever reason, it doesn't
match what else that function does). Change the code in
vo_x11_create_vo_window() to always call vo_x11_update_geometry() for
size variable and window title updates, but add a flag that tells it
not to update position variables.
libvo/x11_common.c
libvo/x11_common.h