Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xf86-input-mouse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xorg
driver
xf86-input-mouse
Commits
3c8f243b
Commit
3c8f243b
authored
Feb 16, 2017
by
Adam Jackson
💣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to removal of xf86GetOS
Signed-off-by:
Adam Jackson
<
ajax@redhat.com
>
parent
9d0d12cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/mouse.c
src/mouse.c
+5
-6
No files found.
src/mouse.c
View file @
3c8f243b
...
@@ -794,7 +794,6 @@ InitProtocols(void)
...
@@ -794,7 +794,6 @@ InitProtocols(void)
{
{
int
classes
;
int
classes
;
int
i
;
int
i
;
const
char
*
osname
=
NULL
;
if
(
osInfo
)
if
(
osInfo
)
return
TRUE
;
return
TRUE
;
...
@@ -821,11 +820,11 @@ InitProtocols(void)
...
@@ -821,11 +820,11 @@ InitProtocols(void)
mouseProtocols
[
i
].
id
=
PROT_UNSUP
;
mouseProtocols
[
i
].
id
=
PROT_UNSUP
;
/* NetBSD uses PROT_BM for "PS/2". */
/* NetBSD uses PROT_BM for "PS/2". */
xf86GetOS
(
&
osname
,
NULL
,
NULL
,
NULL
);
#if defined(__NetBSD__)
if
(
osname
&&
xf86NameCmp
(
osname
,
"netbsd"
)
==
0
)
for
(
i
=
0
;
mouseProtocols
[
i
].
name
;
i
++
)
for
(
i
=
0
;
mouseProtocols
[
i
].
name
;
i
++
)
if
(
mouseProtocols
[
i
].
id
==
PROT_PS2
)
if
(
mouseProtocols
[
i
].
id
==
PROT_PS2
)
mouseProtocols
[
i
].
id
=
PROT_BM
;
mouseProtocols
[
i
].
id
=
PROT_BM
;
#endif
return
TRUE
;
return
TRUE
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment