mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-28 02:34:15 +00:00 
			
		
		
		
	Merge branch 'main' into push
This commit is contained in:
		
						commit
						daf5ee475f
					
				| @ -68,7 +68,7 @@ static const char *menucmd[] = { "bemenu-run", NULL }; | |||||||
| static const Key keys[] = { | static const Key keys[] = { | ||||||
| 	/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ | 	/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ | ||||||
| 	/* modifier                  key                 function        argument */ | 	/* modifier                  key                 function        argument */ | ||||||
| 	{ MODKEY,                    XKB_p,              spawn,          {.v = menucmd} }, | 	{ MODKEY,                    XKB_KEY_p,          spawn,          {.v = menucmd} }, | ||||||
| 	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return,     spawn,          {.v = termcmd} }, | 	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return,     spawn,          {.v = termcmd} }, | ||||||
| 	{ MODKEY,                    XKB_KEY_j,          focusstack,     {.i = +1} }, | 	{ MODKEY,                    XKB_KEY_j,          focusstack,     {.i = +1} }, | ||||||
| 	{ MODKEY,                    XKB_KEY_k,          focusstack,     {.i = -1} }, | 	{ MODKEY,                    XKB_KEY_k,          focusstack,     {.i = -1} }, | ||||||
|  | |||||||
							
								
								
									
										15
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								dwl.c
									
									
									
									
									
								
							| @ -278,7 +278,6 @@ static void setlayout(const Arg *arg); | |||||||
| static void setmfact(const Arg *arg); | static void setmfact(const Arg *arg); | ||||||
| static void setmon(Client *c, Monitor *m, unsigned int newtags); | static void setmon(Client *c, Monitor *m, unsigned int newtags); | ||||||
| static void setup(void); | static void setup(void); | ||||||
| static void sigchld(int unused); |  | ||||||
| static void spawn(const Arg *arg); | static void spawn(const Arg *arg); | ||||||
| static void tag(const Arg *arg); | static void tag(const Arg *arg); | ||||||
| static void tagmon(const Arg *arg); | static void tagmon(const Arg *arg); | ||||||
| @ -1986,8 +1985,9 @@ setup(void) | |||||||
| 	 * clients from the Unix socket, manging Wayland globals, and so on. */ | 	 * clients from the Unix socket, manging Wayland globals, and so on. */ | ||||||
| 	dpy = wl_display_create(); | 	dpy = wl_display_create(); | ||||||
| 
 | 
 | ||||||
| 	/* clean up child processes immediately */ | 	/* Indicate explicitly to the OS that we are not interested in info
 | ||||||
| 	sigchld(0); | 	 * about child processes (per POSIX.1-2001) */ | ||||||
|  | 	signal(SIGCHLD, SIG_IGN); | ||||||
| 
 | 
 | ||||||
| 	/* The backend is a wlroots feature which abstracts the underlying input and
 | 	/* The backend is a wlroots feature which abstracts the underlying input and
 | ||||||
| 	 * output hardware. The autocreate option will choose the most suitable | 	 * output hardware. The autocreate option will choose the most suitable | ||||||
| @ -2138,15 +2138,6 @@ setup(void) | |||||||
| #endif | #endif | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void |  | ||||||
| sigchld(int unused) |  | ||||||
| { |  | ||||||
| 	if (signal(SIGCHLD, sigchld) == SIG_ERR) |  | ||||||
| 		EBARF("can't install SIGCHLD handler"); |  | ||||||
| 	while (0 < waitpid(-1, NULL, WNOHANG)) |  | ||||||
| 		; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void | void | ||||||
| spawn(const Arg *arg) | spawn(const Arg *arg) | ||||||
| { | { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Devin J. Pohly
						Devin J. Pohly