mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-24 05:11:42 +00:00
26a1f66b4e
There's now IN_X11_Preinit, IN_X11_Postinit (both for want of better names), and in_x11_init. The first two are for taking care of initialization that needs to be done before window creation and between window creation and mapping (ie, are very specific to X11 stuff) while in_x11_init takes care of the setup for the input system. This proved necessary in my XInput experimentation: a passive enter grab takes effect only when the pointer enters the window, thus setting up the grab with the pointer already in the window has no effect until the pointer leaves the window and returns.
37 lines
956 B
C
37 lines
956 B
C
/*
|
|
in_x11.h
|
|
|
|
X11 input handling
|
|
|
|
Copyright (C) 2021 Bill Currie <bill@taniwha.org>
|
|
|
|
Author: Bill Currie <bill@taniwha.org>
|
|
Date: 2021/11/21
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to:
|
|
|
|
Free Software Foundation, Inc.
|
|
59 Temple Place - Suite 330
|
|
Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
#ifndef __in_x11_h
|
|
#define __in_x11_h
|
|
|
|
long IN_X11_Preinit (void);
|
|
void IN_X11_Postinit (void);
|
|
|
|
#endif//__in_x11_h
|