Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 121e40d

Browse files
committed
x11-toolkits/como: unbreak consumers with clang 19
In file included from theseus-ship-6.2.0/main_wayland.cpp:10: In file included from /usr/local/include/como/base/wayland/xwl_platform.h:17: /usr/local/include/como/render/wayland/xwl_platform.h:268:19: error: no member named 'addRepaintFull' in 'xwl_platform<Base>'; did you mean 'addRepaint'? 268 | this->addRepaintFull(); | ^ /usr/local/include/como/render/wayland/xwl_platform.h:233:10: note: 'addRepaint' declared here 233 | void addRepaint(QRegion const& region) | ^ Reported by: pkg-fallout
1 parent fd26a78 commit 121e40d

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

x11-toolkits/como/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PORTNAME= como
22
DISTVERSIONPREFIX= v
33
DISTVERSION= 0.3.0
4+
PORTREVISION= 1
45
CATEGORIES= x11-toolkits
56

67
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
@@ -38,7 +39,6 @@ USE_QT= base declarative tools
3839
USE_XORG= x11 xcb
3940
GH_ACCOUNT= winft
4041
SHEBANG_FILES= plugins/effects/*.py
41-
CMAKE_OFF= BUILD_EXAMPLES # https://github.com/winft/como/issues/29
4242
PLIST_SUB= VERSION=${PORTVERSION}
4343
LDFLAGS+= -Wl,--as-needed # fontconfig/freetype, GL, ICE/SM/Xext/Xi, pixman
4444

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
https://github.com/winft/como/issues/29
2+
3+
--- como/render/wayland/platform.h.orig 2024-10-09 12:19:16 UTC
4+
+++ como/render/wayland/platform.h
5+
@@ -246,16 +246,6 @@ class platform (public)
6+
locked++;
7+
}
8+
9+
- void unlock()
10+
- {
11+
- assert(locked > 0);
12+
- locked--;
13+
-
14+
- if (!locked) {
15+
- this->addRepaintFull();
16+
- }
17+
- }
18+
-
19+
std::unique_ptr<scene_t> create_scene()
20+
{
21+
auto setup_hooks = [&, this](auto scene) -> decltype(scene) {
22+
--- como/render/wayland/xwl_platform.h.orig 2024-10-09 12:19:16 UTC
23+
+++ como/render/wayland/xwl_platform.h
24+
@@ -259,16 +259,6 @@ class xwl_platform (public)
25+
locked++;
26+
}
27+
28+
- void unlock()
29+
- {
30+
- assert(locked > 0);
31+
- locked--;
32+
-
33+
- if (!locked) {
34+
- this->addRepaintFull();
35+
- }
36+
- }
37+
-
38+
std::unique_ptr<scene_t> create_scene()
39+
{
40+
if (is_sw_compositing()) {

0 commit comments

Comments
 (0)