add some comments to setup()
This commit is contained in:
		
							parent
							
								
									2f72f58b4a
								
							
						
					
					
						commit
						3cc299537e
					
				
							
								
								
									
										12
									
								
								dunst.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								dunst.c
									
									
									
									
									
								
							| @ -1277,11 +1277,11 @@ void update_screen_info() | |||||||
| void setup(void) | void setup(void) | ||||||
| { | { | ||||||
| 
 | 
 | ||||||
|  |         /* initialize dc, font, keyboard, colors */ | ||||||
|         dc = initdc(); |         dc = initdc(); | ||||||
| 
 | 
 | ||||||
|         initfont(dc, font); |         initfont(dc, font); | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|         init_shortcut(&close_ks); |         init_shortcut(&close_ks); | ||||||
|         init_shortcut(&close_all_ks); |         init_shortcut(&close_all_ks); | ||||||
|         init_shortcut(&history_ks); |         init_shortcut(&history_ks); | ||||||
| @ -1305,8 +1305,8 @@ void setup(void) | |||||||
|         color_strings[ColBG][NORM] = normbgcolor; |         color_strings[ColBG][NORM] = normbgcolor; | ||||||
|         color_strings[ColBG][CRIT] = critbgcolor; |         color_strings[ColBG][CRIT] = critbgcolor; | ||||||
| 
 | 
 | ||||||
|         scr.scr = monitor; |  | ||||||
| 
 | 
 | ||||||
|  |         /* parse and set geometry and monitor position */ | ||||||
|         if (geom[0] == '-') { |         if (geom[0] == '-') { | ||||||
|                 geometry.negative_width = true; |                 geometry.negative_width = true; | ||||||
|                 geom++; |                 geom++; | ||||||
| @ -1318,19 +1318,19 @@ void setup(void) | |||||||
|                                        &geometry.x, &geometry.y, |                                        &geometry.x, &geometry.y, | ||||||
|                                        &geometry.w, &geometry.h); |                                        &geometry.w, &geometry.h); | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|         screensaver_info = XScreenSaverAllocInfo(); |  | ||||||
| 
 |  | ||||||
|         window_dim.x = 0; |         window_dim.x = 0; | ||||||
|         window_dim.y = 0; |         window_dim.y = 0; | ||||||
|         window_dim.w = 0; |         window_dim.w = 0; | ||||||
|         window_dim.h = 0; |         window_dim.h = 0; | ||||||
| 
 | 
 | ||||||
|  |         screensaver_info = XScreenSaverAllocInfo(); | ||||||
|  | 
 | ||||||
|  |         scr.scr = monitor; | ||||||
|         if (scr.scr < 0) { |         if (scr.scr < 0) { | ||||||
|                 scr.scr = DefaultScreen(dc->dpy); |                 scr.scr = DefaultScreen(dc->dpy); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         /* window */ |         /* initialize window */ | ||||||
|         Window root; |         Window root; | ||||||
|         XSetWindowAttributes wa; |         XSetWindowAttributes wa; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sascha Kruse
						Sascha Kruse