slackbuilds_ponce/desktop/sfwbar/inhibit_check.patch
Damian Perticone f7287a1438
desktop/sfwbar: Added (Sway Floating Window Bar)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2022-05-21 08:25:15 +07:00

22 lines
641 B
Diff

--- a/src/wayland.c 2022-04-14 21:01:09.000000000 +0100
+++ b/src/wayland.c 2022-05-16 21:32:21.208252447 +0100
@@ -215,6 +215,9 @@
struct wl_surface *surface;
struct zwp_idle_inhibitor_v1 *inhibitor;
+ if(!idle_inhibit_manager)
+ return;
+
surface = gdk_wayland_window_get_wl_surface(
gtk_widget_get_window(widget));
inhibitor = g_object_get_data(G_OBJECT(widget),"inhibitor");
@@ -237,6 +240,9 @@
void wayland_reset_inhibitors ( GtkWidget *w, gpointer data )
{
+ if(!idle_inhibit_manager)
+ return;
+
if(GTK_IS_CONTAINER(w))
gtk_container_foreach(GTK_CONTAINER(w),wayland_reset_inhibitors,data);