Insert actual screen number into screen info struct
The screen info struct contained always a 0 in its screen number field. So it always had been scr1 == scr2.
This commit is contained in:
		
							parent
							
								
									d7ec8bf165
								
							
						
					
					
						commit
						a5d722799e
					
				| @ -122,6 +122,7 @@ void randr_update() | ||||
|         alloc_screen_ar(n); | ||||
| 
 | ||||
|         for (int i = 0; i < n; i++) { | ||||
|                 screens[i].scr = i; | ||||
|                 screens[i].dim.x = m[i].x; | ||||
|                 screens[i].dim.y = m[i].y; | ||||
|                 screens[i].dim.w = m[i].width; | ||||
| @ -157,6 +158,7 @@ void xinerama_update() | ||||
|         alloc_screen_ar(n); | ||||
| 
 | ||||
|         for (int i = 0; i < n; i++) { | ||||
|                 screens[i].scr = i; | ||||
|                 screens[i].dim.x = info[i].x_org; | ||||
|                 screens[i].dim.y = info[i].y_org; | ||||
|                 screens[i].dim.h = info[i].height; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benedikt Heine
						Benedikt Heine