Fix minor typos

This commit is contained in:
Yuri Chornoivan 2019-11-26 19:48:29 +02:00
parent 84244a7cf6
commit a853e3370a
12 changed files with 14 additions and 14 deletions

View file

@ -494,7 +494,7 @@ public:
/**
* The maximise mode requested by the server.
* For X this always matches maximizeMode, for wayland clients it
* is asyncronous
* is asynchronous
*/
virtual MaximizeMode requestedMaximizeMode() const;
void maximize(MaximizeMode);

View file

@ -619,7 +619,7 @@ void Manager::commitGammaRamps(int temperature)
qCWarning(KWIN_COLORCORRECTION).nospace() << "Committing Gamma Ramp failed for output " << o->name() <<
". Trying " << (10 - m_failedCommitAttempts) << " times more.";
} else {
// TODO: On multi monitor setups we could try to rollback earlier changes for already commited outputs
// TODO: On multi monitor setups we could try to rollback earlier changes for already committed outputs
qCWarning(KWIN_COLORCORRECTION) << "Gamma Ramp commit failed too often. Deactivating color correction for now.";
m_failedCommitAttempts = 0; // reset so we can try again later (i.e. after suspend phase or config change)
m_running = false;

View file

@ -319,7 +319,7 @@ bool GlideEffect::isGlideWindow(EffectWindow *w) const
return false;
}
// Dont't animate the outline because it looks very sick.
// Don't animate the outline because it looks very sick.
if (w->isOutline()) {
return false;
}

View file

@ -1378,7 +1378,7 @@ void PresentWindowsEffect::calculateWindowTransformationsNatural(EffectWindowLis
int xDiff = widthDiff / 2; // Also move a bit in the direction of the enlarge, allows the
int yDiff = heightDiff / 2; // center windows to be enlarged if there is gaps on the side.
// heightDiff (and yDiff) will be re-computed after each successfull enlargement attempt
// heightDiff (and yDiff) will be re-computed after each successful enlargement attempt
// so that the error introduced in the window's aspect ratio is minimized
// Attempt enlarging to the top-right

View file

@ -1515,7 +1515,7 @@ public:
IndexBuffer();
~IndexBuffer();
void accomodate(int count);
void accommodate(int count);
void bind();
private:
@ -1541,7 +1541,7 @@ IndexBuffer::~IndexBuffer()
glDeleteBuffers(1, &m_buffer);
}
void IndexBuffer::accomodate(int count)
void IndexBuffer::accommodate(int count)
{
// Check if we need to grow the buffer.
if (count <= m_count)
@ -2162,7 +2162,7 @@ void GLVertexBuffer::draw(const QRegion &region, GLenum primitiveMode, int first
indexBuffer = new IndexBuffer;
indexBuffer->bind();
indexBuffer->accomodate(count / 4);
indexBuffer->accommodate(count / 4);
count = count * 6 / 4;

View file

@ -496,7 +496,7 @@ void Decoration::hoverLeaveEvent(QHoverEvent *event)
void Decoration::hoverMoveEvent(QHoverEvent *event)
{
if (m_view) {
// turn a hover event into a mouse becase we don't follow hovers as we don't think we have focus
// turn a hover event into a mouse because we don't follow hovers as we don't think we have focus
QMouseEvent cloneEvent(QEvent::MouseMove, event->posF(), Qt::NoButton, Qt::NoButton, Qt::NoModifier);
event->setAccepted(false);
m_view->forwardMouseEvent(&cloneEvent);

View file

@ -19,4 +19,4 @@
"themeListKeyword": "themes",
"themes": true
}
}
}

View file

@ -264,7 +264,7 @@ bool EglGbmBackend::initBufferConfigs()
qCDebug(KWIN_DRM) << "EGL buffer configs count:" << count;
// loop through all configs, chosing the first one that has suitable format
// loop through all configs, choosing the first one that has suitable format
for (EGLint i = 0; i < count; i++) {
EGLint gbmFormat;
// query some configuration parameters, to show in debug log

View file

@ -1083,7 +1083,7 @@ void RuleBook::save()
{
m_updateTimer->stop();
if (!m_config) {
qCWarning(KWIN_CORE) << "RuleBook::save invoked without prior invokation of RuleBook::load";
qCWarning(KWIN_CORE) << "RuleBook::save invoked without prior invocation of RuleBook::load";
return;
}
QStringList groups = m_config->groupList();

View file

@ -88,7 +88,7 @@ bool TouchInputRedirection::focusUpdatesBlocked()
bool TouchInputRedirection::positionValid() const
{
Q_ASSERT(m_touches >= 0);
// we can only determine a position with atleast one touch point
// we can only determine a position with at least one touch point
return m_touches == 0;
}

View file

@ -142,7 +142,7 @@ void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event)
const AbstractClient *client = workspace()->activeClient();
if (!qobject_cast<const X11Client *>(client)) {
// clipboard is only allowed to be acquired when Xwayland has focus
// TODO: can we make this stronger (window id comparision)?
// TODO: can we make this stronger (window id comparison)?
return;
}

View file

@ -142,7 +142,7 @@ void Dnd::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event)
}
if (originSurface->client() != waylandServer()->xWaylandConnection()) {
// focused surface client is not Xwayland - do not allow drag to start
// TODO: can we make this stronger (window id comparision)?
// TODO: can we make this stronger (window id comparison)?
return;
}
if (!seat->isPointerButtonPressed(Qt::LeftButton)) {