head 1.2; access; symbols pkgsrc-2024Q3:1.1.0.2 pkgsrc-2024Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2024.11.15.13.06.27; author pin; state dead; branches; next 1.1; commitid MnZTSbeycKV48KxF; 1.1 date 2024.08.18.07.44.23; author pin; state Exp; branches; next ; commitid XPEOga47SQBJchmF; desc @@ 1.2 log @wm/obconf-qt: update to 0.16.5 obconf-qt-0.16.5 / 2024-11-01 ============================= * Ported to Qt6 and updated translations. @ text @$NetBSD: patch-src_tree.cpp,v 1.1 2024/08/18 07:44:23 pin Exp $ Port to Qt6. --- src/tree.cpp.orig 2024-01-14 11:02:54.000000000 +0000 +++ src/tree.cpp @@@@ -16,7 +16,7 @@@@ See the COPYING file for a copy of the GNU General Public License. */ -#include +#include #include #include "tree.h" @@@@ -115,12 +115,16 @@@@ void tree_apply() g_free(p); if (!err) { + auto x11NativeInterface = qApp->nativeInterface(); + auto display = x11NativeInterface->display(); + auto appRootWindow = XDefaultRootWindow(x11NativeInterface->display()); + XEvent ce; ce.xclient.type = ClientMessage; - ce.xclient.display = QX11Info::display(); + ce.xclient.display = display; ce.xclient.message_type = XInternAtom(ce.xclient.display, "_OB_CONTROL", false); - Window root = QX11Info::appRootWindow(); + Window root = appRootWindow; ce.xclient.window = root; ce.xclient.format = 32; ce.xclient.data.l[0] = 1; /* reconfigure */ @ 1.1 log @wm/obconf-qt: port to Qt6 Fix build with Qt6 using: https://github.com/lxqt/obconf-qt/pull/230 @ text @d1 1 a1 1 $NetBSD$ @