added a manager-focused message
fixed intial-size of clients
This commit is contained in:
		
							parent
							
								
									0c58224573
								
							
						
					
					
						commit
						1747f6cfa4
					
				| 
						 | 
					@ -62,6 +62,8 @@
 | 
				
			||||||
	   ;; client changed it's size ??
 | 
						   ;; client changed it's size ??
 | 
				
			||||||
	   (fit-client-window wm (second msg)))
 | 
						   (fit-client-window wm (second msg)))
 | 
				
			||||||
	  
 | 
						  
 | 
				
			||||||
 | 
						  ((manager-focused) #t)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	  ((update-client-state)
 | 
						  ((update-client-state)
 | 
				
			||||||
	   (let* ((client (second msg))
 | 
						   (let* ((client (second msg))
 | 
				
			||||||
		  (dpy (wm:dpy wm))
 | 
							  (dpy (wm:dpy wm))
 | 
				
			||||||
| 
						 | 
					@ -85,9 +87,12 @@
 | 
				
			||||||
	   (resizer (create-resizer wm client))
 | 
						   (resizer (create-resizer wm client))
 | 
				
			||||||
	   (options (wm:options wm)))
 | 
						   (options (wm:options wm)))
 | 
				
			||||||
      (set-client:data! client (list titlebar resizer))
 | 
					      (set-client:data! client (list titlebar resizer))
 | 
				
			||||||
      (move-resize-window dpy (client:client-window client)
 | 
					      (let ((bw (get-option-value options 'border-width))
 | 
				
			||||||
			  (rectangle:x r) (rectangle:y r)
 | 
						    (th (get-option-value options 'titlebar-height)))
 | 
				
			||||||
			  (rectangle:width r) (rectangle:height r))
 | 
						(move-resize-window dpy (client:client-window client)
 | 
				
			||||||
 | 
								    (rectangle:x r) (rectangle:y r)
 | 
				
			||||||
 | 
								    (+ (rectangle:width r) (* 2 bw))
 | 
				
			||||||
 | 
								    (+ (rectangle:height r) (* 2 bw) th)))
 | 
				
			||||||
      (fit-client-windows wm client)
 | 
					      (fit-client-windows wm client)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      (install-dragging-control channel dpy
 | 
					      (install-dragging-control channel dpy
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue