From 0baa81aa03559ca315668e5a306364cddf1a6f49 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 27 Apr 2026 02:38:39 -0700 Subject: [PATCH] all: fix typos --- src/core/colorquantizer.hpp | 2 +- src/core/iconprovider.cpp | 2 +- src/core/logging.cpp | 2 +- src/core/qmlscreen.hpp | 2 +- src/core/region.cpp | 2 +- src/core/reload.cpp | 2 +- src/core/reload.hpp | 2 +- src/core/scan.cpp | 6 +++--- src/core/test/scriptmodel.cpp | 2 +- src/core/variants.cpp | 2 +- src/core/variants.hpp | 2 +- src/io/datastream.cpp | 2 +- src/io/fileview.hpp | 4 ++-- src/io/socket.hpp | 4 ++-- src/ipc/ipc.hpp | 2 +- src/launch/command.cpp | 2 +- src/network/enums.cpp | 2 +- src/network/network.hpp | 2 +- src/network/nm/wireless.cpp | 2 +- src/services/pipewire/node.cpp | 4 ++-- src/services/pipewire/node.hpp | 2 +- src/services/pipewire/qml.hpp | 8 ++++---- src/services/polkit/flow.hpp | 4 ++-- src/services/polkit/module.md | 2 +- src/wayland/buffer/dmabuf.cpp | 2 +- src/wayland/buffer/manager.cpp | 4 +++- src/wayland/hyprland/ipc/qml.hpp | 2 +- src/wayland/popupanchor.cpp | 2 +- src/wayland/session_lock/session_lock.hpp | 4 ++-- src/wayland/session_lock/surface.cpp | 4 ++-- src/wayland/wlr_layershell/wlr_layershell.cpp | 2 +- src/widgets/IconImage.qml | 2 +- src/window/panelinterface.hpp | 8 ++++---- src/window/proxywindow.cpp | 2 +- src/x11/i3/ipc/connection.cpp | 2 +- src/x11/i3/ipc/controller.cpp | 4 ++-- src/x11/i3/ipc/monitor.hpp | 2 +- 37 files changed, 54 insertions(+), 52 deletions(-) diff --git a/src/core/colorquantizer.hpp b/src/core/colorquantizer.hpp index 0159181..bbc9390 100644 --- a/src/core/colorquantizer.hpp +++ b/src/core/colorquantizer.hpp @@ -89,7 +89,7 @@ class ColorQuantizer /// The size to rescale the image to, when rescaleSize is 0 then no scaling will be done. /// > [!NOTE] Results from color quantization doesn't suffer much when rescaling, it's - /// > reccommended to rescale, otherwise the quantization process will take much longer. + /// > recommended to rescale, otherwise the quantization process will take much longer. Q_PROPERTY(qreal rescaleSize READ rescaleSize WRITE setRescaleSize NOTIFY rescaleSizeChanged); public: diff --git a/src/core/iconprovider.cpp b/src/core/iconprovider.cpp index 383f7e1..853027a 100644 --- a/src/core/iconprovider.cpp +++ b/src/core/iconprovider.cpp @@ -14,7 +14,7 @@ #include "generation.hpp" -// QMenu re-calls pixmap() every time the mouse moves so its important to cache it. +// QMenu re-calls pixmap() every time the mouse moves so it's important to cache it. class PixmapCacheIconEngine: public QIconEngine { void paint( QPainter* /*unused*/, diff --git a/src/core/logging.cpp b/src/core/logging.cpp index 1b19fab..4f84c74 100644 --- a/src/core/logging.cpp +++ b/src/core/logging.cpp @@ -530,7 +530,7 @@ void ThreadLogging::initFs() { Qt::QueuedConnection ); - qCDebug(logLogging) << "Switched threaded logger to queued eventloop connection."; + qCDebug(logLogging) << "Switched threaded logger to queued event loop connection."; } void ThreadLogging::onMessage(const LogMessage& msg, bool showInSparse) { diff --git a/src/core/qmlscreen.hpp b/src/core/qmlscreen.hpp index 5e978bc..5e44911 100644 --- a/src/core/qmlscreen.hpp +++ b/src/core/qmlscreen.hpp @@ -15,7 +15,7 @@ /// Monitor object useful for setting the monitor for a @@QsWindow /// or querying information about the monitor. /// -/// > [!WARNING] If the monitor is disconnected than any stored copies of its ShellMonitor will +/// > [!WARNING] If the monitor is disconnected, then any stored copies of its ShellMonitor will /// > be marked as dangling and all properties will return default values. /// > Reconnecting the monitor will not reconnect it to the ShellMonitor object. /// diff --git a/src/core/region.cpp b/src/core/region.cpp index 82cc2e7..ebc64fc 100644 --- a/src/core/region.cpp +++ b/src/core/region.cpp @@ -242,7 +242,7 @@ QRegion PendingRegion::applyTo(QRegion& region) const { } QRegion PendingRegion::applyTo(const QRect& rect) const { - // if left as the default, dont combine it with the whole rect area, leave it as is. + // if left as the default, don't combine it with the whole rect area, leave it as is. if (this->mIntersection == Intersection::Combine) { return this->build(); } else { diff --git a/src/core/reload.cpp b/src/core/reload.cpp index ea2abbf..4349a14 100644 --- a/src/core/reload.cpp +++ b/src/core/reload.cpp @@ -116,7 +116,7 @@ QObject* Reloadable::getChildByReloadId(QObject* parent, const QString& reloadId auto* reloadable = qobject_cast(child); if (reloadable != nullptr) { if (reloadable->mReloadableId == reloadId) return reloadable; - // if not then don't check its children as thats a seperate reload scope. + // if not then don't check its children as that's a separate reload scope. } else { auto* reloadable = Reloadable::getChildByReloadId(child, reloadId); if (reloadable != nullptr) return reloadable; diff --git a/src/core/reload.hpp b/src/core/reload.hpp index ae5d7c9..0a66fcd 100644 --- a/src/core/reload.hpp +++ b/src/core/reload.hpp @@ -21,7 +21,7 @@ class Reloadable /// previous state. /// /// Simply keeping a stable identifier across config versions (saves) is - /// enough to help the reloader figure out which object in the old revision corrosponds to + /// enough to help the reloader figure out which object in the old revision corresponds to /// this object in the current revision, and facilitate smoother reloading. /// /// Note that identifiers are scoped, and will try to do the right thing in context. diff --git a/src/core/scan.cpp b/src/core/scan.cpp index 3605c52..9f33302 100644 --- a/src/core/scan.cpp +++ b/src/core/scan.cpp @@ -89,7 +89,7 @@ void QmlScanner::scanDir(const QDir& dir) { QString qmldir; auto stream = QTextStream(&qmldir); - // cant derive a module name if not in shell path + // can't derive a module name if not in shell path if (path.startsWith(this->rootPath.path())) { auto end = path.sliced(this->rootPath.path().length()); @@ -160,7 +160,7 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna if (!singleton && line == "pragma Singleton") { singleton = true; } else if (line.startsWith("import")) { - // we dont care about "import qs" as we always load the root folder + // we don't care about "import qs" as we always load the root folder if (auto importCursor = line.indexOf(" qs."); importCursor != -1) { importCursor += 4; QString path; @@ -211,7 +211,7 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna mask = false; } if (!sourceMasked && mask) hideMask = true; - mask = sourceMasked || mask; // cant unmask if a nested if passes + mask = sourceMasked || mask; // can't unmask if a nested if passes ifScopes.append(mask); if (mask) isOverridden = true; sourceMasked = mask; diff --git a/src/core/test/scriptmodel.cpp b/src/core/test/scriptmodel.cpp index 0abfdbf..b77e5e8 100644 --- a/src/core/test/scriptmodel.cpp +++ b/src/core/test/scriptmodel.cpp @@ -90,7 +90,7 @@ void TestScriptModel::unique_data() { QTest::addRow("move_overlapping") << "ABCDEFG" << "ABDEFCG" << OpList({{ModelOperation::Move, 3, 3, 2}}); - // Ensure iterators arent skipping anything at the end of operations by performing + // Ensure iterators aren't skipping anything at the end of operations by performing // multiple back to back. QTest::addRow("insert_state_ok") << "ABCDEFG" << "ABXXEFG" diff --git a/src/core/variants.cpp b/src/core/variants.cpp index a190e36..b58df3f 100644 --- a/src/core/variants.cpp +++ b/src/core/variants.cpp @@ -145,7 +145,7 @@ void Variants::updateVariants() { { if (this->mInstances.contains(variant)) { - continue; // we dont need to recreate this one + continue; // we don't need to recreate this one } auto variantMap = QVariantMap(); diff --git a/src/core/variants.hpp b/src/core/variants.hpp index fa0333d..b38c104 100644 --- a/src/core/variants.hpp +++ b/src/core/variants.hpp @@ -43,7 +43,7 @@ class Variants: public Reloadable { Q_OBJECT; /// The component to create instances of. /// - /// The delegate should define a `modelData` property that will be popuplated with a value + /// The delegate should define a `modelData` property that will be populated with a value /// from the @@model. Q_PROPERTY(QQmlComponent* delegate MEMBER mDelegate); /// The list of sets of properties to create instances with. diff --git a/src/io/datastream.cpp b/src/io/datastream.cpp index 393f333..804c412 100644 --- a/src/io/datastream.cpp +++ b/src/io/datastream.cpp @@ -51,7 +51,7 @@ void SplitParser::parseBytes(QByteArray& incoming, QByteArray& buffer) { return; } - // make sure we dont miss any delimiters in the buffer if the delimiter changes + // make sure we don't miss any delimiters in the buffer if the delimiter changes if (this->mSplitMarkerChanged) { this->mSplitMarkerChanged = false; this->parseBytes(buffer, buffer); diff --git a/src/io/fileview.hpp b/src/io/fileview.hpp index 4d6128c..93f7f8a 100644 --- a/src/io/fileview.hpp +++ b/src/io/fileview.hpp @@ -29,9 +29,9 @@ class FileViewError: public QObject { public: enum Enum : quint8 { - /// No error occured. + /// No error occurred. Success = 0, - /// An unknown error occured. Check the logs for details. + /// An unknown error occurred. Check the logs for details. Unknown = 1, /// The file to read does not exist. FileNotFound = 2, diff --git a/src/io/socket.hpp b/src/io/socket.hpp index 3fd230e..8124a67 100644 --- a/src/io/socket.hpp +++ b/src/io/socket.hpp @@ -96,7 +96,7 @@ class SocketServer: public Reloadable { Q_OBJECT; /// If the socket server is currently active. Defaults to false. /// - /// Setting this to false will destory all active connections and delete + /// Setting this to false will destroy all active connections and delete /// the socket file on disk. /// /// If path is empty setting this property will have no effect. @@ -105,7 +105,7 @@ class SocketServer: public Reloadable { /// /// Setting this property while the server is active will have no effect. Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged); - /// Connection handler component. Must creeate a @@Socket. + /// Connection handler component. Must create a @@Socket. /// /// The created socket should not set @@connected or @@path or the incoming /// socket connection will be dropped (they will be set by the socket server.) diff --git a/src/ipc/ipc.hpp b/src/ipc/ipc.hpp index 8ad4c42..4db1aa6 100644 --- a/src/ipc/ipc.hpp +++ b/src/ipc/ipc.hpp @@ -19,7 +19,7 @@ template constexpr void assertSerializable() { - // monostate being zero ensures transactional reads wont break + // monostate being zero ensures transactional reads won't break static_assert( std::is_same_v>, std::monostate>, "Serialization of variants without std::monostate at index 0 is disallowed." diff --git a/src/launch/command.cpp b/src/launch/command.cpp index d80e5a9..9e1a45b 100644 --- a/src/launch/command.cpp +++ b/src/launch/command.cpp @@ -119,7 +119,7 @@ int locateConfigFile(CommandState& cmd, QString& path) { return -1; } } else { - qCCritical(logBare) << "Could not open maifest at path" << *cmd.config.manifest; + qCCritical(logBare) << "Could not open manifest at path" << *cmd.config.manifest; return -1; } } else { diff --git a/src/network/enums.cpp b/src/network/enums.cpp index bdbacb3..31cf355 100644 --- a/src/network/enums.cpp +++ b/src/network/enums.cpp @@ -38,7 +38,7 @@ QString ConnectionFailReason::toString(ConnectionFailReason::Enum reason) { switch (reason) { case Unknown: return QStringLiteral("Unknown"); case NoSecrets: return QStringLiteral("Secrets were required but not provided"); - case WifiClientDisconnected: return QStringLiteral("Wi-Fi supplicant diconnected"); + case WifiClientDisconnected: return QStringLiteral("Wi-Fi supplicant disconnected"); case WifiClientFailed: return QStringLiteral("Wi-Fi supplicant failed"); case WifiAuthTimeout: return QStringLiteral("Wi-Fi connection took too long to authenticate"); case WifiNetworkLost: return QStringLiteral("Wi-Fi network could not be found"); diff --git a/src/network/network.hpp b/src/network/network.hpp index 9022cc7..2a3b046 100644 --- a/src/network/network.hpp +++ b/src/network/network.hpp @@ -28,7 +28,7 @@ class Network: public QObject { Q_PROPERTY(QString name READ default NOTIFY nameChanged BINDABLE bindableName); /// The device this network belongs to. Q_PROPERTY(NetworkDevice* device READ device CONSTANT); - /// A list of NetworkManager connnection settings profiles for this network. + /// A list of NetworkManager connection settings profiles for this network. /// /// > [!WARNING] Only valid for the NetworkManager backend. Q_PROPERTY(QList nmSettings READ default NOTIFY nmSettingsChanged BINDABLE bindableNmSettings); diff --git a/src/network/nm/wireless.cpp b/src/network/nm/wireless.cpp index 58a89b5..7d794a0 100644 --- a/src/network/nm/wireless.cpp +++ b/src/network/nm/wireless.cpp @@ -139,7 +139,7 @@ void NMWirelessDevice::onSettingsLoaded(NMSettings* settings) { } void NMWirelessDevice::onActiveConnectionLoaded(NMActiveConnection* active) { - // Find an exisiting network with connection settings that matches the active + // Find an existing network with connection settings that matches the active const QString activeConnPath = active->connection().path(); for (const auto& net: this->mNetworks.values()) { for (auto* settings: net->settings()) { diff --git a/src/services/pipewire/node.cpp b/src/services/pipewire/node.cpp index a4ddaea..73e4da5 100644 --- a/src/services/pipewire/node.cpp +++ b/src/services/pipewire/node.cpp @@ -193,7 +193,7 @@ void PwNode::initProps(const spa_dict* props) { qCCritical( logNode ) << this - << "has a device.id property that does not corrospond to a device object. Id:" << id; + << "has a device.id property that does not correspond to a device object. Id:" << id; } } } @@ -580,7 +580,7 @@ PwVolumeProps PwVolumeProps::parseSpaPod(const spa_pod* param) { const auto* volumes = reinterpret_cast(&volumesProp->value); spa_pod* iter = nullptr; SPA_POD_ARRAY_FOREACH(volumes, iter) { - // Cubing behavior found in MPD source, and appears to corrospond to everyone else's measurements correctly. + // Cubing behavior found in MPD source, and appears to correspond to everyone else's measurements correctly. auto linear = *reinterpret_cast(iter); auto visual = std::cbrt(linear); props.volumes.push_back(visual); diff --git a/src/services/pipewire/node.hpp b/src/services/pipewire/node.hpp index efc819c..58aa65a 100644 --- a/src/services/pipewire/node.hpp +++ b/src/services/pipewire/node.hpp @@ -140,7 +140,7 @@ public: // This is equivalent to the media class `Video/Source` and is composed // of the @@PwNodeType.Video and @@PwNodeType.Source flags. VideoSource = Video | Source, - // A consumer of video, such as a program that is recieving a video stream. + // A consumer of video, such as a program that is receiving a video stream. // // This is equivalent to the media class `Video/Sink` and is composed of the // @@PwNodeType.Video and @@PwNodeType.Sink flags. diff --git a/src/services/pipewire/qml.hpp b/src/services/pipewire/qml.hpp index a43ce19..458ddeb 100644 --- a/src/services/pipewire/qml.hpp +++ b/src/services/pipewire/qml.hpp @@ -233,7 +233,7 @@ class PwNodeAudioIface: public QObject { /// /// > [!WARNING] This property is invalid unless the node is bound using @@PwObjectTracker. Q_PROPERTY(QVector channels READ channels NOTIFY channelsChanged); - /// The volumes of each audio channel individually. Each entry corrosponds to + /// The volumes of each audio channel individually. Each entry corresponds to /// the volume of the channel at the same index in @@channels. @@volumes and @@channels /// will always be the same length. /// @@ -274,13 +274,13 @@ class PwNodeIface: public PwObjectIface { /// Mainly useful for debugging. You can inspect the node directly /// with `pw-cli i `. Q_PROPERTY(quint32 id READ id CONSTANT); - /// The node's name, corrosponding to the object's `node.name` property. + /// The node's name, corresponding to the object's `node.name` property. Q_PROPERTY(QString name READ name CONSTANT); - /// The node's description, corrosponding to the object's `node.description` property. + /// The node's description, corresponding to the object's `node.description` property. /// /// May be empty. Generally more human readable than @@name. Q_PROPERTY(QString description READ description CONSTANT); - /// The node's nickname, corrosponding to the object's `node.nickname` property. + /// The node's nickname, corresponding to the object's `node.nickname` property. /// /// May be empty. Generally but not always more human readable than @@description. Q_PROPERTY(QString nickname READ nickname CONSTANT); diff --git a/src/services/polkit/flow.hpp b/src/services/polkit/flow.hpp index 0b7e845..d6d7bd4 100644 --- a/src/services/polkit/flow.hpp +++ b/src/services/polkit/flow.hpp @@ -127,14 +127,14 @@ signals: /// /// This may be because the user entered the wrong password or otherwise /// failed to authenticate. - /// This signal is not emmitted when the user canceled the request or it + /// This signal is not emitted when the user canceled the request or it /// was cancelled by the PolKit daemon. /// /// After this signal, a new session is automatically started for the same /// identity. void authenticationFailed(); - /// Emmitted when on ongoing authentication request is cancelled by the PolKit daemon. + /// Emitted when an ongoing authentication request is cancelled by the PolKit daemon. void authenticationRequestCancelled(); void selectedIdentityChanged(); diff --git a/src/services/polkit/module.md b/src/services/polkit/module.md index b306ecb..20b5816 100644 --- a/src/services/polkit/module.md +++ b/src/services/polkit/module.md @@ -41,7 +41,7 @@ A conversation can take multiple turns, for example if second factors are involv If authentication fails, we automatically create a fresh session so the user can try again. The @@Quickshell.Services.Polkit.AuthFlow.authenticationFailed signal is emitted in this case. -If authentication is successful, you receive the @@Quickshell.Services.Polkit.AuthFlow.authenticationSucceeeded signal. At this point, the dialog can be closed. +If authentication is successful, you receive the @@Quickshell.Services.Polkit.AuthFlow.authenticationSucceeded signal. At this point, the dialog can be closed. If additional requests are queued, you will receive the @@Quickshell.Services.Polkit.PolkitAgent.authenticationRequestStarted signal again. #### Cancelled requests diff --git a/src/wayland/buffer/dmabuf.cpp b/src/wayland/buffer/dmabuf.cpp index 4ed335a..e518030 100644 --- a/src/wayland/buffer/dmabuf.cpp +++ b/src/wayland/buffer/dmabuf.cpp @@ -1121,7 +1121,7 @@ WlBufferQSGTexture* WlDmaBuffer::createQsgTextureVulkan(QQuickWindow* window) co VkDeviceMemory memory = VK_NULL_HANDLE; // dup() is required because vkAllocateMemory with VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT - // takes ownership of the fd on succcess. Without dup, WlDmaBuffer would double-close. + // takes ownership of the fd on success. Without dup, WlDmaBuffer would double-close. const int dupFd = dup(this->planes[0].fd); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) if (dupFd < 0) { diff --git a/src/wayland/buffer/manager.cpp b/src/wayland/buffer/manager.cpp index 79f3030..93290ab 100644 --- a/src/wayland/buffer/manager.cpp +++ b/src/wayland/buffer/manager.cpp @@ -78,7 +78,9 @@ void WlBufferManager::initWindow(QQuickWindow* window) { auto success = this->p->dmabuf.initRenderFormats(window); if (!success) { - qCWarning(logBuffer) << "Render format initialization failed. All buffers will fall back to SHM."; + qCWarning( + logBuffer + ) << "Render format initialization failed. All buffers will fall back to SHM."; this->p->mRenderFormatsFailed = true; } diff --git a/src/wayland/hyprland/ipc/qml.hpp b/src/wayland/hyprland/ipc/qml.hpp index b9a8d5e..5c73bed 100644 --- a/src/wayland/hyprland/ipc/qml.hpp +++ b/src/wayland/hyprland/ipc/qml.hpp @@ -51,7 +51,7 @@ public: /// Execute a hyprland [dispatcher](https://wiki.hyprland.org/Configuring/Dispatchers). Q_INVOKABLE static void dispatch(const QString& request); - /// Get the HyprlandMonitor object that corrosponds to a quickshell screen. + /// Get the HyprlandMonitor object that corresponds to a quickshell screen. Q_INVOKABLE static HyprlandMonitor* monitorFor(QuickshellScreenInfo* screen); /// Refresh monitor information. diff --git a/src/wayland/popupanchor.cpp b/src/wayland/popupanchor.cpp index 14e1923..ac098d1 100644 --- a/src/wayland/popupanchor.cpp +++ b/src/wayland/popupanchor.cpp @@ -21,7 +21,7 @@ void WaylandPopupPositioner::reposition(PopupAnchor* anchor, QWindow* window, bo anchor->updateAnchor(); - // If a popup becomes invisble after creation ensure the _q properties will + // If a popup becomes invisible after creation ensure the _q properties will // be set and not ignored because the rest is the same. anchor->updatePlacement({popupRole != nullptr, 0}, window->size()); diff --git a/src/wayland/session_lock/session_lock.hpp b/src/wayland/session_lock/session_lock.hpp index 5a55896..f35289f 100644 --- a/src/wayland/session_lock/session_lock.hpp +++ b/src/wayland/session_lock/session_lock.hpp @@ -32,11 +32,11 @@ public: signals: // This signal is sent once the compositor considers the session to be fully locked. - // This corrosponds to the ext_session_lock_v1::locked event. + // This corresponds to the ext_session_lock_v1::locked event. void locked(); // This signal is sent once the compositor considers the session to be unlocked. - // This corrosponds to the ext_session_lock_v1::finished event. + // This corresponds to the ext_session_lock_v1::finished event. // // The session lock will end in one of three cases. // 1. unlock() is called. diff --git a/src/wayland/session_lock/surface.cpp b/src/wayland/session_lock/surface.cpp index c73f459..d42c7f0 100644 --- a/src/wayland/session_lock/surface.cpp +++ b/src/wayland/session_lock/surface.cpp @@ -31,7 +31,7 @@ QSWaylandSessionLockSurface::QSWaylandSessionLockSurface(QtWaylandClient::QWayla if (waylandScreen != nullptr && !waylandScreen->isPlaceholder() && waylandScreen->output()) { output = waylandScreen->output(); } else { - qFatal() << "Session lock screen does not corrospond to a real screen. Force closing window"; + qFatal() << "Session lock screen does not correspond to a real screen. Force closing window"; } this->init(this->ext->lock->get_lock_surface(window->waylandSurface()->object(), output)); @@ -146,7 +146,7 @@ void QSWaylandSessionLockSurface::initVisible() { #include #include -// As of Qt 6.9, a null buffer is unconditionally comitted to the surface. To avoid this, we +// As of Qt 6.9, a null buffer is unconditionally committed to the surface. To avoid this, we // cast the window to a subclass with access to mSurface, then swap mSurface during // QWaylandWindow::initWindow to avoid the null commit. diff --git a/src/wayland/wlr_layershell/wlr_layershell.cpp b/src/wayland/wlr_layershell/wlr_layershell.cpp index 947c51a..d675925 100644 --- a/src/wayland/wlr_layershell/wlr_layershell.cpp +++ b/src/wayland/wlr_layershell/wlr_layershell.cpp @@ -109,7 +109,7 @@ bool WlrLayershell::deleteOnInvisible() const { // Qt windows behave weirdly when geometry is modified and setVisible(false) // is subsequently called in the same frame. // It will attach buffers to the wayland surface unconditionally before - // the surface recieves a configure event, causing a protocol error. + // the surface receives a configure event, causing a protocol error. // To remedy this we forcibly disallow window reuse. return true; } diff --git a/src/widgets/IconImage.qml b/src/widgets/IconImage.qml index dd8a5f1..fb46d2b 100644 --- a/src/widgets/IconImage.qml +++ b/src/widgets/IconImage.qml @@ -46,7 +46,7 @@ Item { /// exposed by IconImage. property /*Image*/alias backer: image - /// The suggested size of the image. This is used as a defualt + /// The suggested size of the image. This is used as a default /// for @@QtQuick.Item.implicitWidth and @@QtQuick.Item.implicitHeight. property real implicitSize: 0 diff --git a/src/window/panelinterface.hpp b/src/window/panelinterface.hpp index 64dff50..8c64940 100644 --- a/src/window/panelinterface.hpp +++ b/src/window/panelinterface.hpp @@ -65,7 +65,7 @@ enum Enum : quint8 { Ignore = 1, /// Decide the exclusion zone based on the window dimensions and anchors. /// - /// Will attempt to reseve exactly enough space for the window and its margins if + /// Will attempt to reserve exactly enough space for the window and its margins if /// exactly 3 anchors are connected. Auto = 2, }; @@ -99,7 +99,7 @@ class PanelWindowInterface: public WindowInterface { /// Anchors attach a shell window to the sides of the screen. /// By default all anchors are disabled to avoid blocking the entire screen due to a misconfiguration. /// - /// > [!INFO] When two opposite anchors are attached at the same time, the corrosponding dimension + /// > [!INFO] When two opposite anchors are attached at the same time, the corresponding dimension /// > (width or height) will be forced to equal the screen width/height. /// > Margins can be used to create anchored windows that are also disconnected from the monitor sides. Q_PROPERTY(Anchors anchors READ anchors WRITE setAnchors NOTIFY anchorsChanged); @@ -116,11 +116,11 @@ class PanelWindowInterface: public WindowInterface { Q_PROPERTY(ExclusionMode::Enum exclusionMode READ exclusionMode WRITE setExclusionMode NOTIFY exclusionModeChanged); /// If the panel should render above standard windows. Defaults to true. /// - /// Note: On Wayland this property corrosponds to @@Quickshell.Wayland.WlrLayershell.layer. + /// Note: On Wayland this property corresponds to @@Quickshell.Wayland.WlrLayershell.layer. Q_PROPERTY(bool aboveWindows READ aboveWindows WRITE setAboveWindows NOTIFY aboveWindowsChanged); /// If the panel should accept keyboard focus. Defaults to false. /// - /// Note: On Wayland this property corrosponds to @@Quickshell.Wayland.WlrLayershell.keyboardFocus. + /// Note: On Wayland this property corresponds to @@Quickshell.Wayland.WlrLayershell.keyboardFocus. Q_PROPERTY(bool focusable READ focusable WRITE setFocusable NOTIFY focusableChanged); // clang-format on QML_NAMED_ELEMENT(PanelWindow); diff --git a/src/window/proxywindow.cpp b/src/window/proxywindow.cpp index ce3df8a..116d3df 100644 --- a/src/window/proxywindow.cpp +++ b/src/window/proxywindow.cpp @@ -243,7 +243,7 @@ void ProxyWindowBase::completeWindow() { this->mContentItem->setWidth(this->width()); this->mContentItem->setHeight(this->height()); - // without this the dangling screen pointer wont be updated to a real screen + // without this the dangling screen pointer won't be updated to a real screen emit this->screenChanged(); } diff --git a/src/x11/i3/ipc/connection.cpp b/src/x11/i3/ipc/connection.cpp index 976167b..6b558ff 100644 --- a/src/x11/i3/ipc/connection.cpp +++ b/src/x11/i3/ipc/connection.cpp @@ -133,7 +133,7 @@ void I3Ipc::eventSocketReady() { void I3Ipc::connect() { this->liveEventSocket.connectToServer(this->mSocketPath); } void I3Ipc::reconnectIPC() { - qCWarning(logI3Ipc) << "Fatal IPC error occured, recreating connection"; + qCWarning(logI3Ipc) << "Fatal IPC error occurred, recreating connection"; this->liveEventSocket.disconnectFromServer(); this->connect(); } diff --git a/src/x11/i3/ipc/controller.cpp b/src/x11/i3/ipc/controller.cpp index a83afd4..e4f32ff 100644 --- a/src/x11/i3/ipc/controller.cpp +++ b/src/x11/i3/ipc/controller.cpp @@ -224,13 +224,13 @@ void I3IpcController::handleRunCommand(I3IpcEvent* event) { if (!success) { const QString error = obj["error"].toString(); - qCWarning(logI3Ipc) << "Error occured while running command:" << error; + qCWarning(logI3Ipc) << "Error occurred while running command:" << error; } } } void I3IpcController::handleWorkspaceEvent(I3IpcEvent* event) { - // If a workspace doesn't exist, and is being switch to, no focus change event is emited, + // If a workspace doesn't exist, and is being switch to, no focus change event is emitted, // only the init one, which does not contain the previously focused workspace auto change = event->mData["change"]; diff --git a/src/x11/i3/ipc/monitor.hpp b/src/x11/i3/ipc/monitor.hpp index c328d8b..3630460 100644 --- a/src/x11/i3/ipc/monitor.hpp +++ b/src/x11/i3/ipc/monitor.hpp @@ -16,7 +16,7 @@ class I3Monitor: public QObject { Q_PROPERTY(qint32 id READ default NOTIFY idChanged BINDABLE bindableId); /// The name of this monitor Q_PROPERTY(QString name READ default NOTIFY nameChanged BINDABLE bindableName); - /// Wether this monitor is turned on or not + /// Whether this monitor is turned on or not Q_PROPERTY(bool power READ default NOTIFY powerChanged BINDABLE bindablePower); /// The currently active workspace on this monitor, May be null. Q_PROPERTY(qs::i3::ipc::I3Workspace* activeWorkspace READ default NOTIFY activeWorkspaceChanged BINDABLE bindableActiveWorkspace);