Commit 69255b8
committed
x11: Dedup the X11_FindWindow() function
The was duplicated in the XInput2 code, but taking an SDL_VideoData parameter instead of SDL_VideoDevice. Remove the duplicated XInput2 function, and use an SDL_VideoData parameter for X11_FindWindow to avoid an unnecessary dereference.1 parent a4de176 commit 69255b8
File tree
3 files changed
+8
-24
lines changed- src/video/x11
3 files changed
+8
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
| 1014 | + | |
1015 | 1015 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | 1016 | | |
1020 | | - | |
| 1017 | + | |
1021 | 1018 | | |
1022 | 1019 | | |
1023 | 1020 | | |
| |||
1341 | 1338 | | |
1342 | 1339 | | |
1343 | 1340 | | |
1344 | | - | |
| 1341 | + | |
1345 | 1342 | | |
1346 | 1343 | | |
1347 | 1344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 133 | | |
147 | 134 | | |
148 | | - | |
| 135 | + | |
149 | 136 | | |
150 | 137 | | |
151 | 138 | | |
| |||
519 | 506 | | |
520 | 507 | | |
521 | 508 | | |
522 | | - | |
| 509 | + | |
523 | 510 | | |
524 | 511 | | |
525 | 512 | | |
| |||
546 | 533 | | |
547 | 534 | | |
548 | 535 | | |
549 | | - | |
| 536 | + | |
550 | 537 | | |
551 | 538 | | |
552 | 539 | | |
| |||
615 | 602 | | |
616 | 603 | | |
617 | 604 | | |
618 | | - | |
| 605 | + | |
619 | 606 | | |
620 | 607 | | |
621 | 608 | | |
| |||
0 commit comments