xephyr: Don't check for SeatId anymore
After a change for the xserver to automatically determine the seat
based on the XDG_SEAT variable, xephyr stopped working. This was
because of an old feature where xephyr used to handle evdev
directly. This was dropped some time ago, and now this check is
not needed
(cherry picked from commit 4c03b67d33)
			
			
This commit is contained in:
		
							parent
							
								
									6197bea02e
								
							
						
					
					
						commit
						c1ad8df2fc
					
				|  | @ -70,25 +70,23 @@ InitInput(int argc, char **argv) | |||
|     KdKeyboardInfo *ki; | ||||
|     KdPointerInfo *pi; | ||||
| 
 | ||||
|     if (!SeatId) { | ||||
|         KdAddKeyboardDriver(&EphyrKeyboardDriver); | ||||
|         KdAddPointerDriver(&EphyrMouseDriver); | ||||
|     KdAddKeyboardDriver(&EphyrKeyboardDriver); | ||||
|     KdAddPointerDriver(&EphyrMouseDriver); | ||||
| 
 | ||||
|         if (!kdHasKbd) { | ||||
|             ki = KdNewKeyboard(); | ||||
|             if (!ki) | ||||
|                 FatalError("Couldn't create Xephyr keyboard\n"); | ||||
|             ki->driver = &EphyrKeyboardDriver; | ||||
|             KdAddKeyboard(ki); | ||||
|         } | ||||
|     if (!kdHasKbd) { | ||||
|         ki = KdNewKeyboard(); | ||||
|         if (!ki) | ||||
|             FatalError("Couldn't create Xephyr keyboard\n"); | ||||
|         ki->driver = &EphyrKeyboardDriver; | ||||
|         KdAddKeyboard(ki); | ||||
|     } | ||||
| 
 | ||||
|         if (!kdHasPointer) { | ||||
|             pi = KdNewPointer(); | ||||
|             if (!pi) | ||||
|                 FatalError("Couldn't create Xephyr pointer\n"); | ||||
|             pi->driver = &EphyrMouseDriver; | ||||
|             KdAddPointer(pi); | ||||
|         } | ||||
|     if (!kdHasPointer) { | ||||
|         pi = KdNewPointer(); | ||||
|         if (!pi) | ||||
|             FatalError("Couldn't create Xephyr pointer\n"); | ||||
|         pi->driver = &EphyrMouseDriver; | ||||
|         KdAddPointer(pi); | ||||
|     } | ||||
| 
 | ||||
|     KdInitInput(); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue