mirror of https://github.com/mpv-player/mpv
dont mess with the window position in xinerama when -geometry changes it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11997 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e3c7c5dc11
commit
6332d6bbe9
|
@ -9,6 +9,7 @@
|
|||
char *vo_geometry = NULL;
|
||||
// set when either width or height is changed
|
||||
int geometry_wh_changed = 0;
|
||||
int geometry_xy_changed = 0;
|
||||
|
||||
#define RESET_GEOMETRY width = height = xoff = yoff = xper = yper = -1;
|
||||
|
||||
|
@ -85,6 +86,8 @@ int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh)
|
|||
|
||||
if( width != -1 || height != -1)
|
||||
geometry_wh_changed = 1;
|
||||
if( xoff != -1 || yoff != -1)
|
||||
geometry_xy_changed = 1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
|
||||
extern char *vo_geometry;
|
||||
extern int geometry_wh_changed;
|
||||
extern int geometry_xy_changed;
|
||||
int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh);
|
||||
#endif /* !__GEOMETRY_H */
|
||||
|
|
Loading…
Reference in New Issue