Mercurial > mplayer.hg
comparison libvo/vo_x11.c @ 18715:30d7ddf08889
Fix window position when changing videos while in fullscreen and for
window managers that modify position on Map. Oked by Alexander Strasser.
author | reimar |
---|---|
date | Thu, 15 Jun 2006 08:00:37 +0000 |
parents | a107276371a8 |
children | 497ebe3ecc2b |
comparison
equal
deleted
inserted
replaced
18714:8fc996a3b4e1 | 18715:30d7ddf08889 |
---|---|
422 XNextEvent(mDisplay, &xev); | 422 XNextEvent(mDisplay, &xev); |
423 } | 423 } |
424 while (xev.type != MapNotify | 424 while (xev.type != MapNotify |
425 || xev.xmap.event != vo_window); | 425 || xev.xmap.event != vo_window); |
426 | 426 |
427 vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight); | |
427 if (fullscreen) | 428 if (fullscreen) |
428 vo_x11_fullscreen(); | 429 vo_x11_fullscreen(); |
429 } else if (!fullscreen) | 430 } else |
430 XMoveResizeWindow(mDisplay, vo_window, vo_dx, vo_dy, | 431 vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight); |
431 vo_dwidth, vo_dheight); | |
432 } | 432 } |
433 | 433 |
434 XSync(mDisplay, False); | 434 XSync(mDisplay, False); |
435 | 435 |
436 // we cannot grab mouse events on root window :( | 436 // we cannot grab mouse events on root window :( |