Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-release cleanup and fixes #12

Merged
merged 15 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
with:
image: registry.gitlab.com/kwinft/ci-images/archlinux/kwinft-base-master
artifact-name: clang-build
# Following tests are currently disabled on CI:
# * lockscreen, modifier-only-shortcut: flaky on CI because the lockscreen greeter process likes to
# freeze off. Also see: https://bugreports.qt.io/browse/QTBUG-82911
# * all others: the GLES2 backend of wlroots can't be run in CI/without GPU at the moment,
# see https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/2871
ctest-args:
"-E 'lockscreen|modifier only shortcut|no crash empty deco|no crash no border\
|scene opengl|opengl shadow|no crash reinit compositor|buffer size change\
Expand Down
163 changes: 0 additions & 163 deletions .gitlab-ci.yml

This file was deleted.

4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,15 @@ include_directories(BEFORE
${CMAKE_CURRENT_SOURCE_DIR}
)

add_subdirectory(kconf_update)
add_subdirectory(como)
add_subdirectory(plugins)

if (BUILD_TESTING)
add_subdirectory(autotests)
add_subdirectory(tests)
endif()

add_subdirectory(examples)

if (KF6DocTools_FOUND)
add_subdirectory(docs)
endif()
Expand Down
9 changes: 0 additions & 9 deletions Messages.sh

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This cross-desktop interoperability will be expanded upon in the future.
**Ease of Use**
<br>
With The Compositor Modules a Wayland compositor can be created with a handful of lines only.
See our MVP [Minico](tests/minico) for an example of that.
See our MVP [Minico](examples/minico) for an example of that.

**Customizability**
<br>
Expand Down Expand Up @@ -127,7 +127,7 @@ You can make use of the FDBuild tool to automate this process as described
It's easiest to link via CMake to The Compositor Modules libraries that you want to make use of
and then create their central platform types from your main function to launch the compositor session.

[Minico](tests/minico) as a minimal example and the [Plasma test binaries](tests/plasma)
[Minico](examples/minico) as a minimal example and the [Plasma test binaries](tests/plasma)
as a more complex one demonstrate this in a straightforward way.

# Contact
Expand Down
15 changes: 0 additions & 15 deletions autotests/CMakeLists.txt

This file was deleted.

17 changes: 0 additions & 17 deletions autotests/libxrenderutils/CMakeLists.txt

This file was deleted.

47 changes: 0 additions & 47 deletions autotests/libxrenderutils/blendpicture_test.cpp

This file was deleted.

1 change: 1 addition & 0 deletions como/desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2023 Roman Gilg <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-or-later
add_subdirectory(kconf_update)

add_library(desktop SHARED)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <QGuiApplication>
#include <QStandardPaths>

int main(int argc, char **argv)
int main(int argc, char** argv)
{
QGuiApplication app(argc, argv);

Expand All @@ -21,7 +21,7 @@ int main(int argc, char **argv)
QStringLiteral("Walk Through Desktop List (Reverse)"),
};

for (const QString &actionName : actionNames) {
for (const QString& actionName : actionNames) {
QAction action;
action.setObjectName(actionName);
action.setProperty("componentName", QStringLiteral("kwin"));
Expand Down
File renamed without changes.
18 changes: 0 additions & 18 deletions como/render/xrender/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,24 +74,6 @@ XRenderPicture xRenderFill(const QColor& c)
return xRenderFill(preMultiply(c));
}

XRenderPicture xRenderBlendPicture(double opacity)
{
static xcb_render_color_t s_blendColor = {0, 0, 0, 0};
s_blendColor.alpha = uint16_t(opacity * 0xffff);
if (XRenderUtils::s_blendPicture == XCB_RENDER_PICTURE_NONE) {
XRenderUtils::s_blendPicture = xRenderFill(s_blendColor);
} else {
xcb_rectangle_t rect = {0, 0, 1, 1};
xcb_render_fill_rectangles(XRenderUtils::s_connection,
XCB_RENDER_PICT_OP_SRC,
XRenderUtils::s_blendPicture,
s_blendColor,
1,
&rect);
}
return XRenderUtils::s_blendPicture;
}

static xcb_render_picture_t createPicture(xcb_pixmap_t pix, int depth)
{
if (pix == XCB_PIXMAP_NONE)
Expand Down
6 changes: 0 additions & 6 deletions como/render/xrender/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ inline XFixesRegion::operator xcb_xfixes_region_t()
return m_region;
}

/**
* Static 1x1 picture used to deliver a black pixel with given opacity (for blending performance)
* Call and Use, the PixelPicture will stay, but may change it's opacity meanwhile. It's NOT
* threadsafe either
*/
COMO_EXPORT XRenderPicture xRenderBlendPicture(double opacity);
/**
* Creates a 1x1 Picture filled with c
*/
Expand Down
7 changes: 0 additions & 7 deletions como/script/Messages.sh

This file was deleted.

3 changes: 3 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2024 Roman Gilg <[email protected]>
# SPDX-License-Identifier: GPL-2.0-or-later
add_subdirectory(minico)
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ add_executable(minico main.cpp)
target_link_libraries(minico
como::wayland
)

install(TARGETS minico)
Loading