summaryrefslogtreecommitdiffstats
path: root/libvo/vo_x11.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-27 10:26:13 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-27 10:26:13 +0000
commitf131aafff160e816a3c5904d664561ffe9f32058 (patch)
tree31eb8b5970484238c36a7ca3d2cad288785879a3 /libvo/vo_x11.c
parentb4be37acaf5d725d0c81508907fef9733acab444 (diff)
downloadmpv-f131aafff160e816a3c5904d664561ffe9f32058.tar.bz2
mpv-f131aafff160e816a3c5904d664561ffe9f32058.tar.xz
Make X11 window creation and (with -fixed-vo) management simpler and more
consistent by introducing a new function that handles most of the ugly things. Changes of behaviour with some vos is unavoidable, bug reports welcome. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23675 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r--libvo/vo_x11.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index d9f04bee0b..3f7b81ef91 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -440,38 +440,12 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
XSelectInput(mDisplay, vo_window, ExposureMask);
} else
{
- if (vo_window == None)
- {
- vo_window =
- vo_x11_create_smooth_window(mDisplay, mRootWin,
- vinfo.visual, vo_dx, vo_dy,
- vo_dwidth, vo_dheight,
- depth, theCmap);
-
- vo_x11_classhint(mDisplay, vo_window, "x11");
- vo_hidecursor(mDisplay, vo_window);
- vo_x11_sizehint(vo_dx, vo_dy, vo_dwidth, vo_dheight, 0);
- XSelectInput(mDisplay, vo_window, StructureNotifyMask);
- XStoreName(mDisplay, vo_window, title);
- XMapWindow(mDisplay, vo_window);
-// if(WinID!=0)
- do
- {
- XNextEvent(mDisplay, &xev);
- }
- while (xev.type != MapNotify
- || xev.xmap.event != vo_window);
-
- vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight);
- if (fullscreen)
- vo_x11_fullscreen();
- } else
- vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight);
+ vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, d_width, d_height,
+ flags, theCmap, "x11", title);
}
XSync(mDisplay, False);
- // we cannot grab mouse events on root window :(
vo_x11_selectinput_witherr(mDisplay, vo_window,
StructureNotifyMask | KeyPressMask |
PropertyChangeMask | ExposureMask |