mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-10-29 05:40:21 -04:00 
			
		
		
		
	opt: make focusmon and tagmon respect warpcursor setting
This commit is contained in:
		
							parent
							
								
									0acefa8738
								
							
						
					
					
						commit
						568befdd3f
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		|  | @ -191,7 +191,9 @@ int focusmon(const Arg *arg) { | |||
| 
 | ||||
| 	old_selmon_sel = selmon->sel; | ||||
| 	selmon = m; | ||||
| 	warp_cursor_to_selmon(selmon); | ||||
| 	if (warpcursor) { | ||||
| 		warp_cursor_to_selmon(selmon); | ||||
| 	} | ||||
| 	c = focustop(selmon); | ||||
| 	if (!c) { | ||||
| 		selmon->sel = NULL; | ||||
|  | @ -1074,7 +1076,9 @@ int tagmon(const Arg *arg) { | |||
| 		focusclient(c, 1); | ||||
| 		arrange(selmon, false); | ||||
| 	} | ||||
| 	warp_cursor_to_selmon(c->mon); | ||||
| 	if (warpcursor) { | ||||
| 		warp_cursor_to_selmon(c->mon); | ||||
| 	} | ||||
| 	return 0; | ||||
| } | ||||
| 
 | ||||
|  | @ -1531,4 +1535,4 @@ int toggleoverview(const Arg *arg) { | |||
| 
 | ||||
| 	refresh_monitors_workspaces_status(selmon); | ||||
| 	return 0; | ||||
| } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 werapi
						werapi