mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Removed KDSKBMUTE. This actually isn't supported by Linux.
This commit is contained in:
		
							parent
							
								
									2c27ed1393
								
							
						
					
					
						commit
						f413a67bb1
					
				
					 1 changed files with 2 additions and 9 deletions
				
			
		| 
						 | 
					@ -23,10 +23,6 @@
 | 
				
			||||||
#include <sys/capability.h>
 | 
					#include <sys/capability.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef KDSKBMUTE
 | 
					 | 
				
			||||||
#define KDSKBMUTE	0x4B51
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
enum { DRM_MAJOR = 226 };
 | 
					enum { DRM_MAJOR = 226 };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const struct session_impl session_direct;
 | 
					const struct session_impl session_direct;
 | 
				
			||||||
| 
						 | 
					@ -147,9 +143,7 @@ static void direct_session_finish(struct wlr_session *base) {
 | 
				
			||||||
		.mode = VT_AUTO,
 | 
							.mode = VT_AUTO,
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ioctl(session->tty_fd, KDSKBMUTE, 0)) {
 | 
					 | 
				
			||||||
	ioctl(session->tty_fd, KDSKBMODE, session->kb_mode);
 | 
						ioctl(session->tty_fd, KDSKBMODE, session->kb_mode);
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	ioctl(session->tty_fd, KDSETMODE, KD_TEXT);
 | 
						ioctl(session->tty_fd, KDSETMODE, KD_TEXT);
 | 
				
			||||||
	ioctl(session->tty_fd, VT_SETMODE, &mode);
 | 
						ioctl(session->tty_fd, VT_SETMODE, &mode);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -214,8 +208,7 @@ static bool setup_tty(struct direct_session *session, struct wl_display *display
 | 
				
			||||||
		goto error;
 | 
							goto error;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ioctl(session->tty_fd, KDSKBMUTE, 1) &&
 | 
						if (ioctl(session->tty_fd, KDSKBMODE, K_OFF)) {
 | 
				
			||||||
			ioctl(session->tty_fd, KDSKBMODE, K_OFF)) {
 | 
					 | 
				
			||||||
		wlr_log_errno(L_ERROR, "Failed to set keyboard mode");
 | 
							wlr_log_errno(L_ERROR, "Failed to set keyboard mode");
 | 
				
			||||||
		goto error;
 | 
							goto error;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue