diff options
Diffstat (limited to 'hw/xfree86/common/xf86Events.c')
-rw-r--r-- | hw/xfree86/common/xf86Events.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c index 58ce15bac..9487fe7b2 100644 --- a/hw/xfree86/common/xf86Events.c +++ b/hw/xfree86/common/xf86Events.c | |||
@@ -201,8 +201,16 @@ xf86ProcessActionEvent(ActionEvent action, void *arg) | |||
201 | #if defined(__SCO__) || defined(__UNIXWARE__) | 201 | #if defined(__SCO__) || defined(__UNIXWARE__) |
202 | vtno--; | 202 | vtno--; |
203 | #endif | 203 | #endif |
204 | #if defined(sun) | ||
205 | if (vtno == xf86Info.vtno) | ||
206 | break; | ||
207 | |||
208 | xf86Info.vtRequestsPending = TRUE; | ||
209 | xf86Info.vtPendingNum = vtno; | ||
210 | #else | ||
204 | if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, vtno) < 0) | 211 | if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, vtno) < 0) |
205 | ErrorF("Failed to switch consoles (%s)\n", strerror(errno)); | 212 | ErrorF("Failed to switch consoles (%s)\n", strerror(errno)); |
213 | #endif | ||
206 | } | 214 | } |
207 | break; | 215 | break; |
208 | case ACTION_SWITCHSCREEN_NEXT: | 216 | case ACTION_SWITCHSCREEN_NEXT: |