Remove loading order dependency on `mouse-autoselect-window'
* exwm-core.el (exwm--get-client-event-mask): Renamed from `exwm--client-event-mask' and used as a function. * exwm-floating.el (exwm-floating--unset-floating): * exwm-layout.el (exwm-layout--hide): * exwm-manage.el (exwm-manage--manage-window): Use it.
This commit is contained in:
		
							parent
							
								
									dd96fffb52
								
							
						
					
					
						commit
						397ca5497e
					
				
					 4 changed files with 10 additions and 9 deletions
				
			
		
							
								
								
									
										11
									
								
								exwm-core.el
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								exwm-core.el
									
										
									
									
									
								
							|  | @ -150,11 +150,12 @@ least SECS seconds later." | |||
|                         ,function | ||||
|                         ,@args)) | ||||
| 
 | ||||
| (defconst exwm--client-event-mask (logior xcb:EventMask:StructureNotify | ||||
|                                           xcb:EventMask:PropertyChange | ||||
|                                           (if mouse-autoselect-window | ||||
|                                               xcb:EventMask:EnterWindow 0)) | ||||
|   "Event mask set on all managed windows.") | ||||
| (defun exwm--get-client-event-mask () | ||||
|   "Return event mask set on all managed windows." | ||||
|   (logior xcb:EventMask:StructureNotify | ||||
|           xcb:EventMask:PropertyChange | ||||
|           (if mouse-autoselect-window | ||||
|               xcb:EventMask:EnterWindow 0))) | ||||
| 
 | ||||
| ;; Internal variables | ||||
| (defvar-local exwm--id nil)               ;window ID | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue