File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed
Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 2828 headless : weston --no-config --socket=wl-test-env --backend=headless &
2929 dependencies : |
3030 sudo apt-get install libxtst-dev libevdev-dev libudev-dev libinput-dev weston --assume-yes
31+ sudo chown root:input /dev/uinput
32+ sudo chmod g+rw /dev/uinput
33+ id -a
34+ whoami
35+ sudo usermod -aG input `whoami`
3136 ls -l -h /dev/uinput
3237 x
3338
Original file line number Diff line number Diff line change @@ -8,22 +8,6 @@ use std::sync::Mutex;
88use std:: thread;
99use std:: time:: Duration ;
1010
11- lazy_static ! {
12- static ref EVENT_CHANNEL : ( Mutex <Sender <Event >>, Mutex <Receiver <Event >>) = {
13- let ( send, recv) = channel( ) ;
14- ( Mutex :: new( send) , Mutex :: new( recv) )
15- } ;
16- }
17-
18- fn send_event ( event : Event ) {
19- EVENT_CHANNEL
20- . 0
21- . lock ( )
22- . expect ( "Failed to unlock Mutex" )
23- . send ( event)
24- . expect ( "Receiving end of EVENT_CHANNEL was closed" ) ;
25- }
26-
2711fn sim_then_listen ( events : & mut dyn Iterator < Item = EventType > ) -> Result < ( ) , Box < dyn Error > > {
2812 let ( send, recv) = channel ( ) ;
2913 // spawn new thread because listen blocks
You can’t perform that action at this time.
0 commit comments