Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cog for openSUSE:Factory checked in at 2025-09-29 21:12:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cog (Old) and /work/SRC/openSUSE:Factory/.cog.new.11973 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cog" Mon Sep 29 21:12:13 2025 rev:5 rq:1307896 version:0.18.5 Changes: -------- --- /work/SRC/openSUSE:Factory/cog/cog.changes 2025-02-24 15:50:06.850633443 +0100 +++ /work/SRC/openSUSE:Factory/.cog.new.11973/cog.changes 2025-09-29 21:12:25.012399078 +0200 @@ -1,0 +2,12 @@ +Mon Sep 22 21:46:43 UTC 2025 - Bjørn Lie <[email protected]> + +- Update to version 0.18.5: + + meson: Make the libmanette support explicitly configurable. + + core: Avoid re-registration of URI scheme handlers. + + wl: + - Fix mouse button release events, always passing the button + number. + - Fix the key repeat timeout. + - Handle mouse button modifiers. + +------------------------------------------------------------------- Old: ---- cog-0.18.4.obscpio New: ---- cog-0.18.5.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cog.spec ++++++ --- /var/tmp/diff_new_pack.udozo0/_old 2025-09-29 21:12:25.708428315 +0200 +++ /var/tmp/diff_new_pack.udozo0/_new 2025-09-29 21:12:25.712428482 +0200 @@ -1,7 +1,7 @@ # # spec file for package cog # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: cog -Version: 0.18.4 +Version: 0.18.5 Release: 0 Summary: WPE launcher and webapp container License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.udozo0/_old 2025-09-29 21:12:25.744429827 +0200 +++ /var/tmp/diff_new_pack.udozo0/_new 2025-09-29 21:12:25.748429995 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="manual"> <param name="scm">git</param> <param name="url">https://github.com/Igalia/cog.git</param> - <param name="revision">0.18.4</param> + <param name="revision">0.18.5</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ cog-0.18.4.obscpio -> cog-0.18.5.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cog-0.18.4/.github/workflows/ci-cross.yml new/cog-0.18.5/.github/workflows/ci-cross.yml --- old/cog-0.18.4/.github/workflows/ci-cross.yml 2024-05-15 14:39:19.000000000 +0200 +++ new/cog-0.18.5/.github/workflows/ci-cross.yml 2025-05-29 23:05:15.000000000 +0200 @@ -16,12 +16,12 @@ strategy: matrix: buildtype: [release, debug] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache - uses: actions/cache@v3 + uses: actions/cache@v4 id: cache with: path: ~/toolchain diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cog-0.18.4/.github/workflows/ci-native.yml new/cog-0.18.5/.github/workflows/ci-native.yml --- old/cog-0.18.4/.github/workflows/ci-native.yml 2024-05-15 14:39:19.000000000 +0200 +++ new/cog-0.18.5/.github/workflows/ci-native.yml 2025-05-29 23:05:15.000000000 +0200 @@ -13,12 +13,16 @@ jobs: build: - runs-on: ubuntu-20.04 + # TODO: It would be nice to move away from Ubuntu 22.04, but that would + # need either building WPE WebKit, finding a PPA for it, or using + # a self-hosted runner with preconfigured base system including + # the needed dependencies. + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -101,7 +105,7 @@ run: ninja -C ~/build/ - name: Archive Documentation - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docs path: ~/build/docs/html @@ -109,15 +113,15 @@ publish: if: ${{ github.ref == 'refs/heads/master' }} needs: build - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Fetch Documentation - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: docs path: html - name: Deploy Documentation - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cog-0.18.4/.github/workflows/codestyle.yml new/cog-0.18.5/.github/workflows/codestyle.yml --- old/cog-0.18.4/.github/workflows/codestyle.yml 2024-05-15 14:39:19.000000000 +0200 +++ new/cog-0.18.5/.github/workflows/codestyle.yml 2025-05-29 23:05:15.000000000 +0200 @@ -8,22 +8,18 @@ jobs: check: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout Head - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Fetch Git History run: | git fetch --no-tags --prune --depth=1 \ origin +refs/heads/master:refs/remotes/origin/master - name: Install Tools run: | - curl -sL https://apt.llvm.org/llvm-snapshot.gpg.key | \ - sudo apt-key add - - sudo add-apt-repository \ - 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main' sudo apt update - sudo apt install -y clang-format-13 diffutils + sudo apt install -y clang-format-18 diffutils - name: Check run: | data/check-style -ocode-style.diff origin/master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cog-0.18.4/NEWS new/cog-0.18.5/NEWS --- old/cog-0.18.4/NEWS 2024-05-15 14:39:19.000000000 +0200 +++ new/cog-0.18.5/NEWS 2025-05-29 23:05:15.000000000 +0200 @@ -1,4 +1,14 @@ ===================== +0.18.5 - May 29, 2025 +===================== + +- meson: Make the libmanette support explicitly configurable. +- core: Avoid re-registration of URI scheme handlers. +- wl: Fix mouse button release events, always passing the button number. +- wl: Fix the key repeat timeout. +- wl: Handle mouse button modifiers. + +===================== 0.18.4 - May 15, 2024 ===================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cog-0.18.4/core/cog-shell.c new/cog-0.18.5/core/cog-shell.c --- old/cog-0.18.4/core/cog-shell.c 2024-05-15 14:39:19.000000000 +0200 +++ new/cog-0.18.5/core/cog-shell.c 2025-05-29 23:05:15.000000000 +0200 @@ -131,6 +131,7 @@ handle_uri_scheme_request, entry, NULL); + entry->registered = TRUE; } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cog-0.18.4/meson.build new/cog-0.18.5/meson.build --- old/cog-0.18.4/meson.build 2024-05-15 14:39:19.000000000 +0200 +++ new/cog-0.18.5/meson.build 2025-05-29 23:05:15.000000000 +0200 @@ -6,7 +6,7 @@ 'c_std=c11', ], license: 'MIT', - version: '0.18.4', + version: '0.18.5', ) # Before making a release, the LT_VERSION string should be modified. @@ -16,7 +16,7 @@ # - If binary compatibility has been broken (eg removed or changed interfaces) # change to [C+1, 0, 0] # - If the interface is the same as the previous version, use [C, R+1, A]. -cogcore_soversion = [11, 7, 2] +cogcore_soversion = [11, 8, 2] # Mangle [C, R, A] into an actual usable *soversion*. cogcore_soversion_major = cogcore_soversion[0] - cogcore_soversion[2] # Current-Age @@ -151,7 +151,7 @@ endif wpe_dep = dependency('wpe-1.0') -manette_dep = dependency('manette-0.2', version: '>=0.2.4', required: false) +manette_dep = dependency('manette-0.2', version: '>=0.2.4', required: get_option('libmanette')) subdir('core') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cog-0.18.4/meson_options.txt new/cog-0.18.5/meson_options.txt --- old/cog-0.18.4/meson_options.txt 2024-05-15 14:39:19.000000000 +0200 +++ new/cog-0.18.5/meson_options.txt 2025-05-29 23:05:15.000000000 +0200 @@ -24,6 +24,14 @@ description: 'WPE WebKit API to target (1.0 = soup2, 1.1/2.0 = soup3)' ) +# Features supported in more than one platform +option( + 'libmanette', + type: 'feature', + value: 'auto', + description: 'Use libmanette to support gamepads' +) + # Wayland platform-specific features option( 'wayland_weston_direct_display', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cog-0.18.4/platform/wayland/cog-platform-wl.c new/cog-0.18.5/platform/wayland/cog-platform-wl.c --- old/cog-0.18.4/platform/wayland/cog-platform-wl.c 2024-05-15 14:39:19.000000000 +0200 +++ new/cog-0.18.5/platform/wayland/cog-platform-wl.c 2025-05-29 23:05:15.000000000 +0200 @@ -9,16 +9,17 @@ #include "../../core/cog.h" #include <errno.h> +#include <glib-object.h> +#include <glib.h> +#include <linux/input-event-codes.h> #include <stdbool.h> #include <stdint.h> -#include <wpe/webkit.h> -#include <wpe/fdo.h> -#include <wpe/fdo-egl.h> -#include <stdlib.h> #include <stdio.h> -#include <glib.h> -#include <glib-object.h> +#include <stdlib.h> #include <string.h> +#include <wpe/fdo-egl.h> +#include <wpe/fdo.h> +#include <wpe/webkit.h> #include <wayland-client.h> #include <wayland-server.h> @@ -885,6 +886,27 @@ wl_data.pointer.surface = NULL; } +static uint32_t +button_modifier(void) +{ + if (!wl_data.pointer.state) { + return 0; + } + + switch (wl_data.pointer.button) { + case BTN_LEFT: + return wpe_input_pointer_modifier_button1; + + case BTN_RIGHT: + return wpe_input_pointer_modifier_button2; + + case BTN_MIDDLE: + return wpe_input_pointer_modifier_button3; + } + + return 0; +} + static void pointer_on_motion(void *data, struct wl_pointer *pointer, uint32_t time, wl_fixed_t fixed_x, wl_fixed_t fixed_y) { @@ -896,7 +918,8 @@ wl_data.pointer.x * wl_data.current_output->scale, wl_data.pointer.y * wl_data.current_output->scale, wl_data.pointer.button, - wl_data.pointer.state}; + wl_data.pointer.state, + button_modifier()}; wpe_view_backend_dispatch_pointer_event(wpe_view_data.backend, &event); } @@ -911,14 +934,12 @@ { wl_data.event_serial = serial; - /* @FIXME: what is this for? if (button >= BTN_MOUSE) button = button - BTN_MOUSE + 1; else button = 0; - */ - wl_data.pointer.button = !!state ? button : 0; + wl_data.pointer.button = button; wl_data.pointer.state = state; struct wpe_input_pointer_event event = { @@ -928,6 +949,7 @@ wl_data.pointer.y * wl_data.current_output->scale, wl_data.pointer.button, wl_data.pointer.state, + button_modifier(), }; if (popup_data.wl_surface) { @@ -1201,7 +1223,7 @@ wl_data.keyboard.repeat_data.time); wl_data.keyboard.repeat_data.event_source = - g_timeout_add(wl_data.keyboard.repeat_info.rate, (GSourceFunc) repeat_delay_timeout, self); + g_timeout_add(1000 / wl_data.keyboard.repeat_info.rate, (GSourceFunc) repeat_delay_timeout, self); return G_SOURCE_REMOVE; } ++++++ cog.obsinfo ++++++ --- /var/tmp/diff_new_pack.udozo0/_old 2025-09-29 21:12:26.000440580 +0200 +++ /var/tmp/diff_new_pack.udozo0/_new 2025-09-29 21:12:26.008440917 +0200 @@ -1,5 +1,5 @@ name: cog -version: 0.18.4 -mtime: 1715776759 -commit: c4625676a21308e7c82175f1ce9a6c8849f22800 +version: 0.18.5 +mtime: 1748552715 +commit: 5d7c720e4f16360a0412a949a1a3f4209e81b9ec
