|
|
gVw->desktopHeight = DisplayHeight(gGui->video_display, gGui->video_screen); | gVw->desktopHeight = DisplayHeight(gGui->video_display, gGui->video_screen); |
| |
#ifdef HAVE_XTESTEXTENSION | #ifdef HAVE_XTESTEXTENSION |
gVw->fake_keys[0] = XKeysymToKeycode(gGui->video_display, XK_Scroll_Lock); |
gVw->fake_keys[0] = XKeysymToKeycode(gGui->video_display, XK_Shift_L); |
gVw->fake_keys[1] = XKeysymToKeycode(gGui->video_display, XK_Num_Lock); |
gVw->fake_keys[1] = XKeysymToKeycode(gGui->video_display, XK_Control_L); |
gVw->fake_key_cur = 0; | gVw->fake_key_cur = 0; |
#endif | #endif |
| |
|
|
XLockDisplay(gGui->video_display); | XLockDisplay(gGui->video_display); |
XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], True, CurrentTime); | XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], True, CurrentTime); |
XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], False, CurrentTime); | XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], False, CurrentTime); |
XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], True, CurrentTime); |
|
XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], False, CurrentTime); |
|
XSync(gGui->video_display, False); | XSync(gGui->video_display, False); |
XUnlockDisplay(gGui->video_display); | XUnlockDisplay(gGui->video_display); |
} | } |