mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[x11] Remove key focus and destination handling
I'm undecided on how to handle application focus (probably gain/lose events), and the destination handler has been a stub for a while. One less dependency on the "old" key handling code.
This commit is contained in:
parent
31c1eae1ec
commit
6dc90c5497
1 changed files with 0 additions and 14 deletions
|
@ -599,20 +599,9 @@ XLateKey (XKeyEvent *ev, int *k, int *u)
|
|||
*u = unicode;
|
||||
}
|
||||
|
||||
static void
|
||||
in_x11_keydest_callback (keydest_t key_dest, void *data)
|
||||
{
|
||||
// if (key_dest == key_game) {
|
||||
// XAutoRepeatOff (x_disp);
|
||||
// } else {
|
||||
// XAutoRepeatOn (x_disp);
|
||||
// }
|
||||
}
|
||||
|
||||
static void
|
||||
event_focusout (XEvent *event)
|
||||
{
|
||||
Key_FocusEvent (0);
|
||||
if (x_have_focus) {
|
||||
x_have_focus = false;
|
||||
if (in_snd_block->int_val) {
|
||||
|
@ -627,7 +616,6 @@ static void
|
|||
event_focusin (XEvent *event)
|
||||
{
|
||||
x_have_focus = true;
|
||||
Key_FocusEvent (1);
|
||||
if (in_snd_block->int_val) {
|
||||
S_UnblockSound ();
|
||||
CDAudio_Resume ();
|
||||
|
@ -1026,8 +1014,6 @@ in_x11_init (void *data)
|
|||
in_mouse_avail = 1;
|
||||
}
|
||||
|
||||
Key_KeydestCallback (in_x11_keydest_callback, 0);
|
||||
|
||||
Cmd_AddCommand ("in_paste_buffer", in_paste_buffer_f,
|
||||
"Paste the contents of X's C&P buffer to the console");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue