Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kwindowsystem for openSUSE:Factory checked in at 2022-07-11 19:09:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kwindowsystem (Old) and /work/SRC/openSUSE:Factory/.kwindowsystem.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kwindowsystem" Mon Jul 11 19:09:05 2022 rev:108 rq:988172 version:5.96.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kwindowsystem/kwindowsystem.changes 2022-06-17 21:21:41.746746785 +0200 +++ /work/SRC/openSUSE:Factory/.kwindowsystem.new.1523/kwindowsystem.changes 2022-07-11 19:10:39.423718412 +0200 @@ -1,0 +2,11 @@ +Sun Jul 3 11:56:13 UTC 2022 - Christophe Giboudeaux <[email protected]> + +- Update to 5.96.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/frameworks/5/5.96.0 +- Changes since 5.95.0: + * Make enum Q_ENUM + * Implement _GTK_SHOW_WINDOW_MENU. + +------------------------------------------------------------------- Old: ---- kwindowsystem-5.95.0.tar.xz kwindowsystem-5.95.0.tar.xz.sig New: ---- kwindowsystem-5.96.0.tar.xz kwindowsystem-5.96.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kwindowsystem.spec ++++++ --- /var/tmp/diff_new_pack.EAb7uk/_old 2022-07-11 19:10:39.807718969 +0200 +++ /var/tmp/diff_new_pack.EAb7uk/_new 2022-07-11 19:10:39.811718974 +0200 @@ -17,14 +17,14 @@ %define lname libKF5WindowSystem5 -%define _tar_path 5.95 +%define _tar_path 5.96 # Full KF5 version (e.g. 5.33.0) %{!?_kf5_version: %global _kf5_version %{version}} # Last major and minor KF5 version (e.g. 5.33) %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} %bcond_without released Name: kwindowsystem -Version: 5.95.0 +Version: 5.96.0 Release: 0 Summary: KDE Access to window manager License: LGPL-2.1-or-later ++++++ kwindowsystem-5.95.0.tar.xz -> kwindowsystem-5.96.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/CMakeLists.txt new/kwindowsystem-5.96.0/CMakeLists.txt --- old/kwindowsystem-5.95.0/CMakeLists.txt 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/CMakeLists.txt 2022-07-02 18:00:50.000000000 +0200 @@ -1,11 +1,11 @@ cmake_minimum_required(VERSION 3.16) -set(KF_VERSION "5.95.0") # handled by release scripts +set(KF_VERSION "5.96.0") # handled by release scripts project(KWindowSystem VERSION ${KF_VERSION}) # ECM setup include(FeatureSummary) -find_package(ECM 5.95.0 NO_MODULE) +find_package(ECM 5.96.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) @@ -22,7 +22,7 @@ include(ECMGenerateHeaders) include(CMakeFindFrameworks) include(ECMQtDeclareLoggingCategory) - +include(ECMDeprecationSettings) include(ECMAddQch) include(ECMPoQmTools) @@ -82,7 +82,9 @@ # Subdirectories ecm_install_po_files_as_qm(po) -add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f02) +ecm_set_disabled_deprecation_versions( + QT 5.15.2 +) add_subdirectory(src) if (BUILD_TESTING) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/autotests/netrootinfotestwm.cpp new/kwindowsystem-5.96.0/autotests/netrootinfotestwm.cpp --- old/kwindowsystem-5.95.0/autotests/netrootinfotestwm.cpp 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/autotests/netrootinfotestwm.cpp 2022-07-02 18:00:50.000000000 +0200 @@ -226,6 +226,10 @@ QVERIFY(rootInfo.isSupported(NET::Property2(1 << i))); count++; } + + QVERIFY(rootInfo.isSupported(NET::WM2GTKShowWindowMenu)); + count++; + for (int i = 0; i < 17; ++i) { QVERIFY(rootInfo.isSupported(NET::WindowTypeMask(1 << i))); count++; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/po/is/kwindowsystem5_qt.po new/kwindowsystem-5.96.0/po/is/kwindowsystem5_qt.po --- old/kwindowsystem-5.95.0/po/is/kwindowsystem5_qt.po 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/po/is/kwindowsystem5_qt.po 2022-07-02 18:00:50.000000000 +0200 @@ -6,27 +6,26 @@ # Richard Allen <[email protected]>, 1998-2004. # Pjetur G. Hjaltason <[email protected]>, 2003. # Arnar Le??sson <[email protected]>, 2003, 2005. -# Sveinn ?? Felli <[email protected]>, 2007, 2008, 2009, 2010, 2011, 2012, 2013. +# Sveinn ?? Felli <[email protected]>, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2022. msgid "" msgstr "" "Project-Id-Version: kdelibs4\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2014-03-23 01:50+0000\n" -"PO-Revision-Date: 2013-05-13 22:40+0000\n" -"Last-Translator: Sveinn ?? Felli <[email protected]>\n" -"Language-Team: Icelandic <[email protected]>\n" +"PO-Revision-Date: 2022-06-20 18:44+0000\n" +"Last-Translator: Sveinn ?? Felli <[email protected]>\n" +"Language-Team: Icelandic\n" "Language: is\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Lokalize 1.2\n" +"X-Generator: Lokalize 19.12.3\n" "Plural-Forms: Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Qt-Contexts: true\n" #: platforms/osx/kwindowsystem.cpp:571 platforms/windows/kwindowsystem.cpp:626 #: platforms/xcb/kwindowsystem.cpp:1003 -#, fuzzy, qt-format -#| msgid "Desktop %1" +#, qt-format msgctxt "KWindowSystem|" msgid "Desktop %1" msgstr "Skj??bor?? %1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/po/nb/kwindowsystem5_qt.po new/kwindowsystem-5.96.0/po/nb/kwindowsystem5_qt.po --- old/kwindowsystem-5.95.0/po/nb/kwindowsystem5_qt.po 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/po/nb/kwindowsystem5_qt.po 2022-07-02 18:00:50.000000000 +0200 @@ -27,7 +27,7 @@ "X-Qt-Contexts: true\n" #: platforms/osx/kwindowsystem.cpp:571 platforms/windows/kwindowsystem.cpp:626 -#: platforms/xcb/kwindowsystem.cpp:1002 +#: platforms/xcb/kwindowsystem.cpp:1003 #, qt-format msgctxt "KWindowSystem|" msgid "Desktop %1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/po/ta/kwindowsystem5_qt.po new/kwindowsystem-5.96.0/po/ta/kwindowsystem5_qt.po --- old/kwindowsystem-5.95.0/po/ta/kwindowsystem5_qt.po 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/po/ta/kwindowsystem5_qt.po 2022-07-02 18:00:50.000000000 +0200 @@ -3,27 +3,27 @@ # # Sivakumar Shanmugasundaram <[email protected]>, 2000. # Thuraiappah Vaseeharan <[email protected]>, 2000-2001. -# ???. ???????????? ????????????????????? | Sri Ramadoss M <[email protected]>, 2007-2012 +# ???. ???????????? ????????????????????? | Sri Ramadoss M <[email protected]>, 2007-2012. +# Kishore G <[email protected]>, 2022. msgid "" msgstr "" "Project-Id-Version: kdelibs4\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2014-03-23 01:50+0000\n" -"PO-Revision-Date: 2012-03-25 21:39+0530\n" -"Last-Translator: Sri Ramadoss M <[email protected]>\n" -"Language-Team: Tamil <[email protected]>\n" +"PO-Revision-Date: 2022-06-21 21:19+0530\n" +"Last-Translator: Kishore G <[email protected]>\n" +"Language-Team: Tamil <[email protected]>\n" "Language: ta\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Lokalize 1.2\n" +"X-Generator: Lokalize 22.04.2\n" "X-Qt-Contexts: true\n" #: platforms/osx/kwindowsystem.cpp:571 platforms/windows/kwindowsystem.cpp:626 #: platforms/xcb/kwindowsystem.cpp:1003 -#, fuzzy, qt-format -#| msgid "Desktop %1" +#, qt-format msgctxt "KWindowSystem|" msgid "Desktop %1" -msgstr "???????????? %1" +msgstr "????????????????????? %1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/po/zh_CN/kwindowsystem5_qt.po new/kwindowsystem-5.96.0/po/zh_CN/kwindowsystem5_qt.po --- old/kwindowsystem-5.95.0/po/zh_CN/kwindowsystem5_qt.po 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/po/zh_CN/kwindowsystem5_qt.po 2022-07-02 18:00:50.000000000 +0200 @@ -12,10 +12,6 @@ # Weng Xuetian <[email protected]>, 2011, 2012, 2013. msgid "" msgstr "" -"Project-Id-Version: kdeorg\n" -"PO-Revision-Date: 2022-06-05 04:18\n" -"Language-Team: Chinese Simplified\n" -"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -26,6 +22,10 @@ "X-Crowdin-Language: zh-CN\n" "X-Crowdin-File: /kf5-trunk/messages/kwindowsystem/kwindowsystem5_qt.pot\n" "X-Crowdin-File-ID: 5589\n" +"Project-Id-Version: kdeorg\n" +"Language-Team: Chinese Simplified\n" +"Language: zh_CN\n" +"PO-Revision-Date: 2022-07-02 10:59\n" #: platforms/osx/kwindowsystem.cpp:571 platforms/windows/kwindowsystem.cpp:626 #: platforms/xcb/kwindowsystem.cpp:1003 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/src/kwindowsystem.h new/kwindowsystem-5.96.0/src/kwindowsystem.h --- old/kwindowsystem-5.95.0/src/kwindowsystem.h 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/src/kwindowsystem.h 2022-07-02 18:00:50.000000000 +0200 @@ -677,6 +677,7 @@ **/ Wayland, }; + Q_ENUM(Platform); /** * Returns the Platform used by the QGuiApplication. * This method allows to check for the used windowing system in a cheap and reliable way. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/src/netwm_def.h new/kwindowsystem-5.96.0/src/netwm_def.h --- old/kwindowsystem-5.95.0/src/netwm_def.h 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/src/netwm_def.h 2022-07-02 18:00:50.000000000 +0200 @@ -787,6 +787,7 @@ @li WM2DesktopFileName the base name of the desktop file name or the full path to the desktop file @li WM2GTKFrameExtents extents of the shadow drawn by the client @li WM2GTKApplicationId _GTK_APPLICATION_ID + @li WM2GTKShowWindowMenu _GTK_SHOW_WINDOW_MENU @see Properties2 **/ @@ -823,6 +824,7 @@ WM2AppMenuServiceName = 1u << 28, // NOT STANDARD @since 5.69 WM2AppMenuObjectPath = 1u << 29, // NOT STANDARD @since 5.69 WM2GTKApplicationId = 1u << 30, // NOT STANDARD @since 5.91 + WM2GTKShowWindowMenu = 1u << 31, // NOT STANDARD @since 5.96 WM2AllProperties = ~0u, }; /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/src/platforms/xcb/atoms_p.h new/kwindowsystem-5.96.0/src/platforms/xcb/atoms_p.h --- old/kwindowsystem-5.95.0/src/platforms/xcb/atoms_p.h 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/src/platforms/xcb/atoms_p.h 2022-07-02 18:00:50.000000000 +0200 @@ -155,6 +155,7 @@ // GTK extensions ENUM(_GTK_FRAME_EXTENTS), ENUM(_GTK_APPLICATION_ID), + ENUM(_GTK_SHOW_WINDOW_MENU), // application protocols ENUM(WM_PROTOCOLS), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/src/platforms/xcb/netwm.cpp new/kwindowsystem-5.96.0/src/platforms/xcb/netwm.cpp --- old/kwindowsystem-5.95.0/src/platforms/xcb/netwm.cpp 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/src/platforms/xcb/netwm.cpp 2022-07-02 18:00:50.000000000 +0200 @@ -1111,6 +1111,10 @@ atoms[pnum++] = p->atom(_GTK_FRAME_EXTENTS); } + if (p->properties2 & WM2GTKShowWindowMenu) { + atoms[pnum++] = p->atom(_GTK_SHOW_WINDOW_MENU); + } + xcb_change_property(p->conn, XCB_PROP_MODE_REPLACE, p->root, p->atom(_NET_SUPPORTED), XCB_ATOM_ATOM, 32, pnum, (const void *)atoms); xcb_change_property(p->conn, XCB_PROP_MODE_REPLACE, p->root, p->atom(_NET_SUPPORTING_WM_CHECK), XCB_ATOM_WINDOW, 32, 1, (const void *)&(p->supportwindow)); @@ -1428,6 +1432,10 @@ p->properties2 |= WM2GTKFrameExtents; } + else if (atom == p->atom(_GTK_SHOW_WINDOW_MENU)) { + p->properties2 |= WM2GTKShowWindowMenu; + } + else if (atom == p->atom(_KDE_NET_WM_APPMENU_OBJECT_PATH)) { p->properties2 |= WM2AppMenuObjectPath; } @@ -1585,6 +1593,16 @@ send_client_message(p->conn, netwm_sendevent_mask, p->root, window, p->atom(_NET_MOVERESIZE_WINDOW), data); } +void NETRootInfo::showWindowMenuRequest(xcb_window_t window, int device_id, int x_root, int y_root) +{ +#ifdef NETWMDEBUG + fprintf(stderr, "NETRootInfo::showWindowMenuRequest: requesting menu for 0x%lx (%d, %d, %d)\n", window, device_id, x_root, y_root); +#endif + + const uint32_t data[5] = {uint32_t(device_id), uint32_t(x_root), uint32_t(y_root), 0, 0}; + send_client_message(p->conn, netwm_sendevent_mask, p->root, window, p->atom(_GTK_SHOW_WINDOW_MENU), data); +} + void NETRootInfo::restackRequest(xcb_window_t window, RequestSource src, xcb_window_t above, int detail, xcb_timestamp_t timestamp) { #ifdef NETWMDEBUG @@ -1795,6 +1813,17 @@ #endif changeShowingDesktop(message->data.data32[0]); + } else if (message->type == p->atom(_GTK_SHOW_WINDOW_MENU)) { +#ifdef NETWMDEBUG + fprintf(stderr, + "NETRootInfo::event: showWindowMenu(%ld, %ld, %ld, %ld)\n", + message->window, + message->data.data32[0], + message->data.data32[1], + message->data.data32[2]); +#endif + + showWindowMenu(message->window, message->data.data32[0], message->data.data32[1], message->data.data32[2]); } } @@ -3812,6 +3841,8 @@ dirty2 = WM2FullscreenMonitors; } else if (pe->atom == p->atom(_GTK_FRAME_EXTENTS)) { dirty2 |= WM2GTKFrameExtents; + } else if (pe->atom == p->atom(_GTK_SHOW_WINDOW_MENU)) { + dirty2 |= WM2GTKShowWindowMenu; } else if (pe->atom == p->atom(_KDE_NET_WM_APPMENU_SERVICE_NAME)) { dirty2 |= WM2AppMenuServiceName; } else if (pe->atom == p->atom(_KDE_NET_WM_APPMENU_OBJECT_PATH)) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kwindowsystem-5.95.0/src/platforms/xcb/netwm.h new/kwindowsystem-5.96.0/src/platforms/xcb/netwm.h --- old/kwindowsystem-5.95.0/src/platforms/xcb/netwm.h 2022-06-09 23:28:11.000000000 +0200 +++ new/kwindowsystem-5.96.0/src/platforms/xcb/netwm.h 2022-07-02 18:00:50.000000000 +0200 @@ -664,6 +664,19 @@ void moveResizeWindowRequest(xcb_window_t window, int flags, int x, int y, int width, int height); /** + Clients that wish to show the window menu using WM2GTKShowWindowMenu + (_GTK_SHOW_WINDOW_MENU) should call this function. + This will send a request to the Window Manager. See _GTK_SHOW_WINDOW_MENU + description for details. + + @param window The client window that would be resized/moved. + @param device_id GTK device id + @param x Requested X position for the menu relative to the root window + @param y Requested Y position for the menu relative to the root window + **/ + void showWindowMenuRequest(xcb_window_t window, int device_id, int x_root, int y_root); + + /** Sends the _NET_RESTACK_WINDOW request. **/ void restackRequest(xcb_window_t window, RequestSource source, xcb_window_t above, int detail, xcb_timestamp_t timestamp); @@ -912,6 +925,23 @@ Q_UNUSED(showing); } + /** + A Window Manager should subclass NETRootInfo and reimplement this function + when it wants to know when a Client made a request to show a window menu. + + @param window The window that wants to move/resize + @param device_id GTK device id. + @param x_root X position of the cursor relative to the root window. + @param y_root Y position of the cursor relative to the root window. + **/ + virtual void showWindowMenu(xcb_window_t window, int device_id, int x_root, int y_root) + { + Q_UNUSED(window); + Q_UNUSED(device_id); + Q_UNUSED(x_root); + Q_UNUSED(y_root); + } + private: void update(NET::Properties properties, NET::Properties2 properties2); void setSupported();
