mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
build: update clang tooling and reformat
This commit is contained in:
parent
1552aca3df
commit
0a7dcf30ea
31 changed files with 124 additions and 80 deletions
|
|
@ -414,7 +414,8 @@ WlBuffer* LinuxDmabufManager::createDmabuf(
|
|||
|
||||
if (modifiers.modifiers.isEmpty()) {
|
||||
if (!modifiers.implicit) {
|
||||
qCritical(logDmabuf
|
||||
qCritical(
|
||||
logDmabuf
|
||||
) << "Failed to create gbm_bo: format supports no implicit OR explicit modifiers.";
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,8 @@ void HyprlandWindow::setOpacity(qreal opacity) {
|
|||
if (opacity == this->mOpacity) return;
|
||||
|
||||
if (opacity < 0.0 || opacity > 1.0) {
|
||||
qmlWarning(this
|
||||
qmlWarning(
|
||||
this
|
||||
) << "Cannot set HyprlandWindow.opacity to a value larger than 1.0 or smaller than 0.0";
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -165,7 +165,8 @@ WlrScreencopyContext::OutputTransformQuery::~OutputTransformQuery() {
|
|||
if (this->isInitialized()) this->release();
|
||||
}
|
||||
|
||||
void WlrScreencopyContext::OutputTransformQuery::setScreen(QtWaylandClient::QWaylandScreen* screen
|
||||
void WlrScreencopyContext::OutputTransformQuery::setScreen(
|
||||
QtWaylandClient::QWaylandScreen* screen
|
||||
) {
|
||||
// cursed hack
|
||||
class QWaylandScreenReflector: public QtWaylandClient::QWaylandScreen {
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ void WlSessionLock::updateSurfaces(bool show, WlSessionLock* old) {
|
|||
auto* instance = qobject_cast<WlSessionLockSurface*>(instanceObj);
|
||||
|
||||
if (instance == nullptr) {
|
||||
qWarning(
|
||||
) << "WlSessionLock.surface does not create a WlSessionLockSurface. Aborting lock.";
|
||||
qWarning()
|
||||
<< "WlSessionLock.surface does not create a WlSessionLockSurface. Aborting lock.";
|
||||
if (instanceObj != nullptr) instanceObj->deleteLater();
|
||||
this->unlock();
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@
|
|||
class QSWaylandSessionLockIntegration: public QtWaylandClient::QWaylandShellIntegration {
|
||||
public:
|
||||
bool initialize(QtWaylandClient::QWaylandDisplay* /* display */) override { return true; }
|
||||
QtWaylandClient::QWaylandShellSurface* createShellSurface(QtWaylandClient::QWaylandWindow* window
|
||||
) override;
|
||||
QtWaylandClient::QWaylandShellSurface*
|
||||
createShellSurface(QtWaylandClient::QWaylandWindow* window) override;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ signals:
|
|||
protected:
|
||||
explicit ToplevelManager();
|
||||
|
||||
void zwlr_foreign_toplevel_manager_v1_toplevel(::zwlr_foreign_toplevel_handle_v1* toplevel
|
||||
) override;
|
||||
void
|
||||
zwlr_foreign_toplevel_manager_v1_toplevel(::zwlr_foreign_toplevel_handle_v1* toplevel) override;
|
||||
|
||||
private slots:
|
||||
void onToplevelReady();
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ public:
|
|||
~LayerShellIntegration() override;
|
||||
Q_DISABLE_COPY_MOVE(LayerShellIntegration);
|
||||
|
||||
QtWaylandClient::QWaylandShellSurface* createShellSurface(QtWaylandClient::QWaylandWindow* window
|
||||
) override;
|
||||
QtWaylandClient::QWaylandShellSurface*
|
||||
createShellSurface(QtWaylandClient::QWaylandWindow* window) override;
|
||||
};
|
||||
|
||||
} // namespace qs::wayland::layershell
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ namespace qs::wayland::layershell {
|
|||
|
||||
namespace {
|
||||
|
||||
[[nodiscard]] QtWayland::zwlr_layer_shell_v1::layer toWaylandLayer(const WlrLayer::Enum& layer
|
||||
) noexcept {
|
||||
[[nodiscard]] QtWayland::zwlr_layer_shell_v1::layer
|
||||
toWaylandLayer(const WlrLayer::Enum& layer) noexcept {
|
||||
switch (layer) {
|
||||
case WlrLayer::Background: return QtWayland::zwlr_layer_shell_v1::layer_background;
|
||||
case WlrLayer::Bottom: return QtWayland::zwlr_layer_shell_v1::layer_bottom;
|
||||
|
|
@ -42,8 +42,8 @@ namespace {
|
|||
return QtWayland::zwlr_layer_shell_v1::layer_top;
|
||||
}
|
||||
|
||||
[[nodiscard]] QtWayland::zwlr_layer_surface_v1::anchor toWaylandAnchors(const Anchors& anchors
|
||||
) noexcept {
|
||||
[[nodiscard]] QtWayland::zwlr_layer_surface_v1::anchor
|
||||
toWaylandAnchors(const Anchors& anchors) noexcept {
|
||||
quint32 wl = 0;
|
||||
if (anchors.mLeft) wl |= QtWayland::zwlr_layer_surface_v1::anchor_left;
|
||||
if (anchors.mRight) wl |= QtWayland::zwlr_layer_surface_v1::anchor_right;
|
||||
|
|
@ -146,8 +146,8 @@ LayerSurface::LayerSurface(LayerShellIntegration* shell, QtWaylandClient::QWayla
|
|||
if (waylandScreen != nullptr) {
|
||||
output = waylandScreen->output();
|
||||
} else {
|
||||
qWarning(
|
||||
) << "Layershell screen does not corrospond to a real screen. Letting the compositor pick.";
|
||||
qWarning()
|
||||
<< "Layershell screen does not corrospond to a real screen. Letting the compositor pick.";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue