apply hints before initial mapping (ICCCM)
For WM_CLASS this is mentioned in the ICCCM docs https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.2.5 (third sentence). When changing the WM_CLASS from the command line, this is necessary for window managers to pick it up before applying class-based rules.
This commit is contained in:
		
							parent
							
								
									a2c479c4c8
								
							
						
					
					
						commit
						1f09f0b0bb
					
				
							
								
								
									
										2
									
								
								x.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								x.c
									
									
									
									
									
								
							| @ -1154,8 +1154,8 @@ xinit(int cols, int rows) | |||||||
| 
 | 
 | ||||||
| 	win.mode = MODE_NUMLOCK; | 	win.mode = MODE_NUMLOCK; | ||||||
| 	resettitle(); | 	resettitle(); | ||||||
| 	XMapWindow(xw.dpy, xw.win); |  | ||||||
| 	xhints(); | 	xhints(); | ||||||
|  | 	XMapWindow(xw.dpy, xw.win); | ||||||
| 	XSync(xw.dpy, False); | 	XSync(xw.dpy, False); | ||||||
| 
 | 
 | ||||||
| 	clock_gettime(CLOCK_MONOTONIC, &xsel.tclick1); | 	clock_gettime(CLOCK_MONOTONIC, &xsel.tclick1); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user