formatting cleanup
This commit is contained in:
parent
f04f3af86a
commit
769acd2934
|
@ -324,16 +324,12 @@ Bool DarwinEQInit(DevicePtr pKbd, DevicePtr pPtr) {
|
||||||
*/
|
*/
|
||||||
void ProcessInputEvents(void) {
|
void ProcessInputEvents(void) {
|
||||||
xEvent xe;
|
xEvent xe;
|
||||||
// button number and modifier mask of currently pressed fake button
|
int x = sizeof(xe);
|
||||||
input_check_flag=0;
|
|
||||||
|
|
||||||
// ErrorF("calling mieqProcessInputEvents\n");
|
|
||||||
mieqProcessInputEvents();
|
mieqProcessInputEvents();
|
||||||
|
|
||||||
// Empty the signaling pipe
|
// Empty the signaling pipe
|
||||||
int x = sizeof(xe);
|
|
||||||
while (x == sizeof(xe)) {
|
while (x == sizeof(xe)) {
|
||||||
// DEBUG_LOG("draining pipe\n");
|
|
||||||
x = read(darwinEventReadFD, &xe, sizeof(xe));
|
x = read(darwinEventReadFD, &xe, sizeof(xe));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -343,7 +339,7 @@ void ProcessInputEvents(void) {
|
||||||
void DarwinPokeEQ(void) {
|
void DarwinPokeEQ(void) {
|
||||||
char nullbyte=0;
|
char nullbyte=0;
|
||||||
input_check_flag++;
|
input_check_flag++;
|
||||||
// <daniels> bushing: oh, i ... er ... christ.
|
// <daniels> oh, i ... er ... christ.
|
||||||
write(darwinEventWriteFD, &nullbyte, 1);
|
write(darwinEventWriteFD, &nullbyte, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -389,6 +385,7 @@ void DarwinSendPointerEvents(int ev_type, int ev_button, int pointer_x, int poin
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ev_type == ButtonRelease && darwinFakeButtons && darwinFakeMouseButtonDown) {
|
if (ev_type == ButtonRelease && darwinFakeButtons && darwinFakeMouseButtonDown) {
|
||||||
// If last mousedown was a fake click, don't check for
|
// If last mousedown was a fake click, don't check for
|
||||||
// mouse modifiers here. The user may have released the
|
// mouse modifiers here. The user may have released the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user