comparison libvo/geometry.c @ 11996:398c24cecdc7

dont mess with the window position in xinerama when -geometry changes it.
author attila
date Tue, 24 Feb 2004 21:09:21 +0000
parents d9478c8e5ffe
children e047e70a9767
comparison
equal deleted inserted replaced
11995:78204da6a49d 11996:398c24cecdc7
7 7
8 /* A string of the form [WxH][+X+Y] or xpos[%]:ypos[%] */ 8 /* A string of the form [WxH][+X+Y] or xpos[%]:ypos[%] */
9 char *vo_geometry = NULL; 9 char *vo_geometry = NULL;
10 // set when either width or height is changed 10 // set when either width or height is changed
11 int geometry_wh_changed = 0; 11 int geometry_wh_changed = 0;
12 int geometry_xy_changed = 0;
12 13
13 #define RESET_GEOMETRY width = height = xoff = yoff = xper = yper = -1; 14 #define RESET_GEOMETRY width = height = xoff = yoff = xper = yper = -1;
14 15
15 // xpos,ypos: position of the left upper corner 16 // xpos,ypos: position of the left upper corner
16 // widw,widh: width and height of the window 17 // widw,widh: width and height of the window
83 if(width != -1 && widw) *widw = width; 84 if(width != -1 && widw) *widw = width;
84 if(height != -1 && widh) *widh = height; 85 if(height != -1 && widh) *widh = height;
85 86
86 if( width != -1 || height != -1) 87 if( width != -1 || height != -1)
87 geometry_wh_changed = 1; 88 geometry_wh_changed = 1;
89 if( xoff != -1 || yoff != -1)
90 geometry_xy_changed = 1;
88 } 91 }
89 return 1; 92 return 1;
90 } 93 }
91 94
92 #undef RESET_GEOMETRY 95 #undef RESET_GEOMETRY