From a853e3370a8a10f6a8a7cce4c86605d31a599313 Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Tue, 26 Nov 2019 19:48:29 +0200 Subject: [PATCH] Fix minor typos --- abstract_client.h | 2 +- colorcorrection/manager.cpp | 2 +- effects/glide/glide.cpp | 2 +- effects/presentwindows/presentwindows.cpp | 2 +- libkwineffects/kwinglutils.cpp | 6 +++--- plugins/kdecorations/aurorae/src/aurorae.cpp | 2 +- plugins/kdecorations/aurorae/src/aurorae.json | 2 +- plugins/platforms/drm/egl_gbm_backend.cpp | 2 +- rules.cpp | 2 +- touch_input.cpp | 2 +- xwl/clipboard.cpp | 2 +- xwl/dnd.cpp | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/abstract_client.h b/abstract_client.h index 14f2e67ab9..f1122a3e08 100644 --- a/abstract_client.h +++ b/abstract_client.h @@ -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); diff --git a/colorcorrection/manager.cpp b/colorcorrection/manager.cpp index 50b304ca0e..3b42fd5d3f 100644 --- a/colorcorrection/manager.cpp +++ b/colorcorrection/manager.cpp @@ -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; diff --git a/effects/glide/glide.cpp b/effects/glide/glide.cpp index 08feb88cd7..a023bf6860 100644 --- a/effects/glide/glide.cpp +++ b/effects/glide/glide.cpp @@ -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; } diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index afacd3c87b..a6161d45b3 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -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 diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp index 76a1fd1453..5f7b13b63e 100644 --- a/libkwineffects/kwinglutils.cpp +++ b/libkwineffects/kwinglutils.cpp @@ -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 ®ion, GLenum primitiveMode, int first indexBuffer = new IndexBuffer; indexBuffer->bind(); - indexBuffer->accomodate(count / 4); + indexBuffer->accommodate(count / 4); count = count * 6 / 4; diff --git a/plugins/kdecorations/aurorae/src/aurorae.cpp b/plugins/kdecorations/aurorae/src/aurorae.cpp index 76ce9b0e74..1f8b1ec92f 100644 --- a/plugins/kdecorations/aurorae/src/aurorae.cpp +++ b/plugins/kdecorations/aurorae/src/aurorae.cpp @@ -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); diff --git a/plugins/kdecorations/aurorae/src/aurorae.json b/plugins/kdecorations/aurorae/src/aurorae.json index 1e1205f145..716e7e4026 100644 --- a/plugins/kdecorations/aurorae/src/aurorae.json +++ b/plugins/kdecorations/aurorae/src/aurorae.json @@ -19,4 +19,4 @@ "themeListKeyword": "themes", "themes": true } -} \ No newline at end of file +} diff --git a/plugins/platforms/drm/egl_gbm_backend.cpp b/plugins/platforms/drm/egl_gbm_backend.cpp index c63635d53c..8a7aecd65c 100644 --- a/plugins/platforms/drm/egl_gbm_backend.cpp +++ b/plugins/platforms/drm/egl_gbm_backend.cpp @@ -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 diff --git a/rules.cpp b/rules.cpp index 3b676b2ca3..843dd40ee9 100644 --- a/rules.cpp +++ b/rules.cpp @@ -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(); diff --git a/touch_input.cpp b/touch_input.cpp index 251b8e76c8..eec38e772f 100644 --- a/touch_input.cpp +++ b/touch_input.cpp @@ -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; } diff --git a/xwl/clipboard.cpp b/xwl/clipboard.cpp index 5148ca38b6..3ba6ae36f6 100644 --- a/xwl/clipboard.cpp +++ b/xwl/clipboard.cpp @@ -142,7 +142,7 @@ void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event) const AbstractClient *client = workspace()->activeClient(); if (!qobject_cast(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; } diff --git a/xwl/dnd.cpp b/xwl/dnd.cpp index 5613d425a5..469641115b 100644 --- a/xwl/dnd.cpp +++ b/xwl/dnd.cpp @@ -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)) {