wayfire-plugins-extra: update to version 0.8.1.

This commit is contained in:
SpidFightFR 2024-04-01 20:31:24 +02:00 committed by Andrew J. Hesford
parent d7efcbebc9
commit fdef7bf165
2 changed files with 2 additions and 52 deletions

View File

@ -1,50 +0,0 @@
From c321dda631026485d767f7125e80e5f5d7ad5b35 Mon Sep 17 00:00:00 2001
From: Scott Moreau <oreaus@gmail.com>
Date: Tue, 16 Feb 2021 04:49:52 -0700
Subject: [PATCH] force-fullscreen: Fix crash when closing fullscreened
surfaces (#79)
Introduced by a change in core, rework things to make it not crash
when closing a view.
---
src/force-fullscreen.cpp | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/force-fullscreen.cpp b/src/force-fullscreen.cpp
index 364f239..894c403 100644
--- a/src/force-fullscreen.cpp
+++ b/src/force-fullscreen.cpp
@@ -41,11 +41,23 @@ class fullscreen_subsurface : public wf::surface_interface_t,
fullscreen_subsurface(wayfire_view view) :
wf::surface_interface_t(), wf::compositor_surface_t()
- {}
+ {
+ view->connect_signal("subsurface-removed", &on_subsurface_removed);
+ }
~fullscreen_subsurface()
{}
+ wf::signal_connection_t on_subsurface_removed = [&] (auto data)
+ {
+ auto ev = static_cast<wf::subsurface_removed_signal*>(data);
+ if ((ev->subsurface.get() == this) && _mapped)
+ {
+ _mapped = false;
+ wf::emit_map_state_change(this);
+ }
+ };
+
void on_pointer_enter(int x, int y) override
{
wf::get_core().set_cursor("default");
@@ -295,8 +307,6 @@ class wayfire_force_fullscreen : public wf::plugin_interface_t
if (background->black_border)
{
- wf::emit_map_state_change(background->black_border);
- background->black_border->_mapped = false;
view->remove_subsurface(background->black_border);
background->black_border = nullptr;
}

View File

@ -1,6 +1,6 @@
# Template file for 'wayfire-plugins-extra'
pkgname=wayfire-plugins-extra
version=0.7.5
version=0.8.1
revision=1
build_style=meson
hostmakedepends="pkg-config wayland-devel"
@ -11,7 +11,7 @@ maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://wayfire.org/"
distfiles="https://github.com/WayfireWM/wayfire-plugins-extra/archive/refs/tags/v${version}.tar.gz"
checksum=70418f29ecf9e3cb9c5313302ded125048d1493d57e4e5146f30363c5c954840
checksum=22931376eebb93092828e2fb192facf097de4dc99c8766732f7cabc4e5175feb
post_install() {
vlicense LICENSE