6844750: Solaris build failed after 6799099
Reviewed-by: yan
This commit is contained in:
parent
072ba357bf
commit
fb9bba27b9
@ -950,6 +950,7 @@ int32_t getNumButtons() {
|
|||||||
devices = XListInputDevices(awt_display, &numDevices);
|
devices = XListInputDevices(awt_display, &numDevices);
|
||||||
for (devIdx = 0; devIdx < numDevices; devIdx++) {
|
for (devIdx = 0; devIdx < numDevices; devIdx++) {
|
||||||
aDevice = &(devices[devIdx]);
|
aDevice = &(devices[devIdx]);
|
||||||
|
#ifdef IsXExtensionPointer
|
||||||
if (aDevice->use == IsXExtensionPointer) {
|
if (aDevice->use == IsXExtensionPointer) {
|
||||||
for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) {
|
for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) {
|
||||||
if (aDevice->inputclassinfo[clsIdx].class == ButtonClass) {
|
if (aDevice->inputclassinfo[clsIdx].class == ButtonClass) {
|
||||||
@ -961,6 +962,7 @@ int32_t getNumButtons() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (local_num_buttons <= 0 ) {
|
if (local_num_buttons <= 0 ) {
|
||||||
if (aDevice->use == IsXPointer) {
|
if (aDevice->use == IsXPointer) {
|
||||||
for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) {
|
for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user