#if 0 out the code that listens for /dev/apm events.

A cleaner fix will be forthcoming, but for now this allows the xserver
to work nicely with the recent kernel vt-switch-on-suspend changes.

ok miod@
This commit is contained in:
oga 2010-03-30 17:43:19 +00:00
parent b2f88deaff
commit 33290fb670

View File

@ -156,6 +156,7 @@ bsdPMConfirmEventToOs(int dummyfd, pmEvent event)
PMClose
xf86OSPMOpen(void)
{
#ifndef __OpenBSD__
int kq;
struct kevent ev;
@ -179,6 +180,7 @@ xf86OSPMOpen(void)
xf86PMGetEventFromOs = bsdPMGetEventFromOS;
xf86PMConfirmEventToOs = bsdPMConfirmEventToOs;
APMihPtr = xf86AddInputHandler(kq, xf86HandlePMEvents, NULL);
#endif /* __OpenBSD__ */
return bsdCloseAPM;
}