mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	Add a configuration option for fullscreen locking
Some people are annoyed to have this new behaviour forced for some application which use fake fullscreen.
This commit is contained in:
		
							parent
							
								
									5a1debb5f0
								
							
						
					
					
						commit
						b42abeac69
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
/* appearance */
 | 
					/* appearance */
 | 
				
			||||||
static const int sloppyfocus        = 1;  /* focus follows mouse */
 | 
					static const int sloppyfocus        = 1;  /* focus follows mouse */
 | 
				
			||||||
static const unsigned int borderpx  = 1;  /* border pixel of windows */
 | 
					static const unsigned int borderpx  = 1;  /* border pixel of windows */
 | 
				
			||||||
 | 
					static const int lockfullscreen     = 1;  /* 1 will force focus on the fullscreen window */
 | 
				
			||||||
static const float rootcolor[]      = {0.3, 0.3, 0.3, 1.0};
 | 
					static const float rootcolor[]      = {0.3, 0.3, 0.3, 1.0};
 | 
				
			||||||
static const float bordercolor[]    = {0.5, 0.5, 0.5, 1.0};
 | 
					static const float bordercolor[]    = {0.5, 0.5, 0.5, 1.0};
 | 
				
			||||||
static const float focuscolor[]     = {1.0, 0.0, 0.0, 1.0};
 | 
					static const float focuscolor[]     = {1.0, 0.0, 0.0, 1.0};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -1050,7 +1050,7 @@ focusstack(const Arg *arg)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	/* Focus the next or previous client (in tiling order) on selmon */
 | 
						/* Focus the next or previous client (in tiling order) on selmon */
 | 
				
			||||||
	Client *c, *sel = selclient();
 | 
						Client *c, *sel = selclient();
 | 
				
			||||||
	if (!sel)
 | 
						if (!sel || (sel->isfullscreen && lockfullscreen))
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	if (arg->i > 0) {
 | 
						if (arg->i > 0) {
 | 
				
			||||||
		wl_list_for_each(c, &sel->link, link) {
 | 
							wl_list_for_each(c, &sel->link, link) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue