xcb: Fix typos in source code comments
Change-Id: I3a91f57d3c47d9e96215d5dc064664626a8f65e7 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
7ce3231749
commit
1463ffc38d
@ -268,7 +268,7 @@ QTessellatorPrivate::Edge::Edge(const QTessellatorPrivate::Vertices &vertices, i
|
||||
//
|
||||
|
||||
// WARNING: It's absolutely critical that the intersect() and isLeftOf() methods use
|
||||
// exactly the same algorithm to calulate yi. It's also important to be sure the algorithms
|
||||
// exactly the same algorithm to calculate yi. It's also important to be sure the algorithms
|
||||
// are transitive (ie. the conditions below are true for all input data):
|
||||
//
|
||||
// a.intersect(b) == b.intersect(a)
|
||||
|
@ -763,7 +763,7 @@ void QXcbConnection::handleXcbEvent(xcb_generic_event_t *event)
|
||||
if (xkb_event->any.deviceID == m_keyboard->coreDeviceId()) {
|
||||
switch (xkb_event->any.xkbType) {
|
||||
// XkbNewKkdNotify and XkbMapNotify together capture all sorts of keymap
|
||||
// updates (e.g. xmodmap, xkbcomp, setxkbmap), with minimal redundent recompilations.
|
||||
// updates (e.g. xmodmap, xkbcomp, setxkbmap), with minimal redundant recompilations.
|
||||
case XCB_XKB_STATE_NOTIFY:
|
||||
m_keyboard->updateXKBState(&xkb_event->state_notify);
|
||||
break;
|
||||
|
@ -590,7 +590,7 @@ xcb_cursor_t QXcbCursor::createFontCursor(int cshape)
|
||||
// Non-standard X11 cursors are created from bitmaps
|
||||
cursor = createNonStandardCursor(cshape);
|
||||
|
||||
// Create a glpyh cursor if everything else failed
|
||||
// Create a glyph cursor if everything else failed
|
||||
if (!cursor && cursorId) {
|
||||
cursor = xcb_generate_id(conn);
|
||||
xcb_create_glyph_cursor(conn, cursor, cursorFont, cursorFont,
|
||||
|
@ -884,7 +884,7 @@ QDpi QXcbScreen::logicalDpi() const
|
||||
return QDpi(forcedDpi, forcedDpi);
|
||||
|
||||
// Fall back to 96 DPI in case no logical DPI is set. We don't want to
|
||||
// return physical DPI here, since that is a differnt type of DPI: Logical
|
||||
// return physical DPI here, since that is a different type of DPI: Logical
|
||||
// DPI typically accounts for user preference and viewing distance, and is
|
||||
// quantized into DPI classes (96, 144, 192, etc); pysical DPI is an exact
|
||||
// physical measure.
|
||||
|
@ -56,7 +56,7 @@ enum {
|
||||
};
|
||||
|
||||
// QXcbSystemTrayTracker provides API for accessing the tray window and tracks
|
||||
// its lifecyle by listening for its destruction and recreation.
|
||||
// its lifecycle by listening for its destruction and recreation.
|
||||
// See http://standards.freedesktop.org/systemtray-spec/systemtray-spec-latest.html
|
||||
|
||||
QXcbSystemTrayTracker *QXcbSystemTrayTracker::create(QXcbConnection *connection)
|
||||
|
@ -1771,7 +1771,7 @@ void QXcbWindow::handleConfigureNotifyEvent(const xcb_configure_notify_event_t *
|
||||
if (!qFuzzyCompare(QHighDpiScaling::factor(newScreen), m_sizeHintsScaleFactor))
|
||||
propagateSizeHints();
|
||||
|
||||
// Send the synthetic expose event on resize only when the window is shrinked,
|
||||
// Send the synthetic expose event on resize only when the window is shrunk,
|
||||
// because the "XCB_GRAVITY_NORTH_WEST" flag doesn't send it automatically.
|
||||
if (!m_oldWindowSize.isEmpty()
|
||||
&& (actualGeometry.width() < m_oldWindowSize.width()
|
||||
|
Loading…
x
Reference in New Issue
Block a user