new screenUpdate defaults, handle trace if a device is not grabable
This commit is contained in:
parent
116806959e
commit
310aa3ef09
@ -71,7 +71,7 @@ layout=en
|
|||||||
[screen]
|
[screen]
|
||||||
driver=linux
|
driver=linux
|
||||||
encoding=UTF-8
|
encoding=UTF-8
|
||||||
screenUpdateDelay=0.4
|
screenUpdateDelay=0.1
|
||||||
suspendingScreen=
|
suspendingScreen=
|
||||||
autodetectSuspendingScreen=True
|
autodetectSuspendingScreen=True
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ layout=en
|
|||||||
[screen]
|
[screen]
|
||||||
driver=linux
|
driver=linux
|
||||||
encoding=cp850
|
encoding=cp850
|
||||||
screenUpdateDelay=0.2
|
screenUpdateDelay=0.1
|
||||||
suspendingScreen=
|
suspendingScreen=
|
||||||
autodetectSuspendingScreen=True
|
autodetectSuspendingScreen=True
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ layout=en
|
|||||||
[screen]
|
[screen]
|
||||||
driver=linux
|
driver=linux
|
||||||
encoding=cp850
|
encoding=cp850
|
||||||
screenUpdateDelay=0.4
|
screenUpdateDelay=0.1
|
||||||
suspendingScreen=
|
suspendingScreen=
|
||||||
autodetectSuspendingScreen=True
|
autodetectSuspendingScreen=True
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ layout=en
|
|||||||
[screen]
|
[screen]
|
||||||
driver=linux
|
driver=linux
|
||||||
encoding=cp850
|
encoding=cp850
|
||||||
screenUpdateDelay=0.4
|
screenUpdateDelay=0.1
|
||||||
suspendingScreen=7
|
suspendingScreen=7
|
||||||
autodetectSuspendingScreen=False
|
autodetectSuspendingScreen=False
|
||||||
|
|
||||||
|
@ -131,9 +131,11 @@ class driver():
|
|||||||
# )
|
# )
|
||||||
# dev.grab()
|
# dev.grab()
|
||||||
for fd in self.iDevices:
|
for fd in self.iDevices:
|
||||||
self.uDevices[fd] = UInput.from_device(self.iDevices[fd].fn)
|
try:
|
||||||
self.iDevices[fd].grab()
|
self.uDevices[fd] = UInput.from_device(self.iDevices[fd].fn)
|
||||||
|
self.iDevices[fd].grab()
|
||||||
|
except Exception as e:
|
||||||
|
self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR)
|
||||||
def releaseDevices(self):
|
def releaseDevices(self):
|
||||||
for fd in self.iDevices:
|
for fd in self.iDevices:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user