equal
deleted
inserted
replaced
1516 DEBUG("qt_xfixes_selection_changed: owner = %u; selectionOwner = %u; internal timestamp = %u; external timestamp = %u", |
1516 DEBUG("qt_xfixes_selection_changed: owner = %u; selectionOwner = %u; internal timestamp = %u; external timestamp = %u", |
1517 (unsigned int)(owner ? (int)owner->internalWinId() : 0), (unsigned int)selectionOwner, |
1517 (unsigned int)(owner ? (int)owner->internalWinId() : 0), (unsigned int)selectionOwner, |
1518 (unsigned int)(d ? d->timestamp : 0), (unsigned int)timestamp); |
1518 (unsigned int)(d ? d->timestamp : 0), (unsigned int)timestamp); |
1519 #endif |
1519 #endif |
1520 if (!owner || (selectionOwner && selectionOwner != owner->internalWinId()) || |
1520 if (!owner || (selectionOwner && selectionOwner != owner->internalWinId()) || |
1521 (!selectionOwner && d->timestamp != CurrentTime && d->timestamp < timestamp)) |
1521 (!selectionOwner && (d->timestamp == CurrentTime || d->timestamp < timestamp))) |
1522 return qt_check_selection_sentinel(); |
1522 return qt_check_selection_sentinel(); |
1523 return false; |
1523 return false; |
1524 } |
1524 } |
1525 |
1525 |
1526 bool qt_xfixes_clipboard_changed(Window clipboardOwner, Time timestamp) |
1526 bool qt_xfixes_clipboard_changed(Window clipboardOwner, Time timestamp) |
1530 DEBUG("qt_xfixes_clipboard_changed: owner = %u; clipboardOwner = %u; internal timestamp = %u; external timestamp = %u", |
1530 DEBUG("qt_xfixes_clipboard_changed: owner = %u; clipboardOwner = %u; internal timestamp = %u; external timestamp = %u", |
1531 (unsigned int)(owner ? (int)owner->internalWinId() : 0), (unsigned int)clipboardOwner, |
1531 (unsigned int)(owner ? (int)owner->internalWinId() : 0), (unsigned int)clipboardOwner, |
1532 (unsigned int)(d ? d->timestamp : 0), (unsigned int)timestamp); |
1532 (unsigned int)(d ? d->timestamp : 0), (unsigned int)timestamp); |
1533 #endif |
1533 #endif |
1534 if (!owner || (clipboardOwner && clipboardOwner != owner->internalWinId()) || |
1534 if (!owner || (clipboardOwner && clipboardOwner != owner->internalWinId()) || |
1535 (!clipboardOwner && d->timestamp != CurrentTime && d->timestamp < timestamp)) |
1535 (!clipboardOwner && (d->timestamp == CurrentTime || d->timestamp < timestamp))) |
1536 return qt_check_clipboard_sentinel(); |
1536 return qt_check_clipboard_sentinel(); |
1537 return false; |
1537 return false; |
1538 } |
1538 } |
1539 |
1539 |
1540 QT_END_NAMESPACE |
1540 QT_END_NAMESPACE |