Hello community,

here is the log from the commit of package slurp for openSUSE:Factory checked 
in at 2019-02-14 14:33:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/slurp (Old)
 and      /work/SRC/openSUSE:Factory/.slurp.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "slurp"

Thu Feb 14 14:33:47 2019 rev:2 rq:674530 version:1.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/slurp/slurp.changes      2019-02-08 
12:13:34.457465426 +0100
+++ /work/SRC/openSUSE:Factory/.slurp.new.28833/slurp.changes   2019-02-14 
14:33:52.703638429 +0100
@@ -1,0 +2,9 @@
+Wed Feb 13 12:28:30 UTC 2019 - [email protected]
+
+- Update to 1.0.1:
+  * Mention scdoc as optional dependency
+  * Remove erronous endif
+  * Fix frame callback running after output free
+  * Use linux/input-event-codes.h on FreeBSD
+
+-------------------------------------------------------------------

Old:
----
  v1.0.tar.gz

New:
----
  v1.0.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ slurp.spec ++++++
--- /var/tmp/diff_new_pack.DjhxrU/_old  2019-02-14 14:33:55.187637299 +0100
+++ /var/tmp/diff_new_pack.DjhxrU/_new  2019-02-14 14:33:55.191637298 +0100
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
 Name:           slurp
-Version:        1.0
+Version:        1.0.1
 Release:        0
 Summary:        Wayland region selector
 License:        MIT

++++++ v1.0.tar.gz -> v1.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/slurp-1.0/README.md new/slurp-1.0.1/README.md
--- old/slurp-1.0/README.md     2018-11-22 08:50:30.000000000 +0100
+++ new/slurp-1.0.1/README.md   2019-02-12 21:24:23.000000000 +0100
@@ -11,6 +11,7 @@
 * meson
 * wayland
 * cairo
+* scdoc (optional: man pages)
 
 Then run:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/slurp-1.0/include/slurp.h 
new/slurp-1.0.1/include/slurp.h
--- old/slurp-1.0/include/slurp.h       2018-11-22 08:50:30.000000000 +0100
+++ new/slurp-1.0.1/include/slurp.h     2019-02-12 21:24:23.000000000 +0100
@@ -48,8 +48,8 @@
        struct wl_surface *surface;
        struct zwlr_layer_surface_v1 *layer_surface;
 
+       struct wl_callback *frame_callback;
        bool configured;
-       bool frame_scheduled;
        bool dirty;
        int32_t width, height;
        struct pool_buffer buffers[2];
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/slurp-1.0/main.c new/slurp-1.0.1/main.c
--- old/slurp-1.0/main.c        2018-11-22 08:50:30.000000000 +0100
+++ new/slurp-1.0.1/main.c      2019-02-12 21:24:23.000000000 +0100
@@ -5,11 +5,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <wayland-cursor.h>
-#ifdef __linux__
 #include <linux/input-event-codes.h>
-#elif __FreeBSD__
-#include <dev/evdev/input-event-codes.h>
-#endif
 
 #include "slurp.h"
 #include "render.h"
@@ -216,6 +212,9 @@
        wl_cursor_theme_destroy(output->cursor_theme);
        zwlr_layer_surface_v1_destroy(output->layer_surface);
        wl_surface_destroy(output->surface);
+       if (output->frame_callback) {
+               wl_callback_destroy(output->frame_callback);
+       }
        wl_output_destroy(output->wl_output);
        free(output);
 }
@@ -241,9 +240,8 @@
        render(output);
 
        // Schedule a frame in case the output becomes dirty again
-       struct wl_callback *callback = wl_surface_frame(output->surface);
-       wl_callback_add_listener(callback, &output_frame_listener, output);
-       output->frame_scheduled = true;
+       output->frame_callback = wl_surface_frame(output->surface);
+       wl_callback_add_listener(output->frame_callback, 
&output_frame_listener, output);
 
        wl_surface_attach(output->surface, output->current_buffer->buffer, 0, 
0);
        wl_surface_damage(output->surface, 0, 0, output->width, output->height);
@@ -257,7 +255,7 @@
        struct slurp_output *output = data;
 
        wl_callback_destroy(callback);
-       output->frame_scheduled = false;
+       output->frame_callback = NULL;
 
        if (output->dirty) {
                send_frame(output);
@@ -270,14 +268,13 @@
 
 static void set_output_dirty(struct slurp_output *output) {
        output->dirty = true;
-       if (output->frame_scheduled) {
+       if (output->frame_callback) {
                return;
        }
 
-       struct wl_callback *callback = wl_surface_frame(output->surface);
-       wl_callback_add_listener(callback, &output_frame_listener, output);
+       output->frame_callback = wl_surface_frame(output->surface);
+       wl_callback_add_listener(output->frame_callback, 
&output_frame_listener, output);
        wl_surface_commit(output->surface);
-       output->frame_scheduled = true;
 }
 
 static struct slurp_output *output_from_surface(struct slurp_state *state,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/slurp-1.0/meson.build new/slurp-1.0.1/meson.build
--- old/slurp-1.0/meson.build   2018-11-22 08:50:30.000000000 +0100
+++ new/slurp-1.0.1/meson.build 2019-02-12 21:24:23.000000000 +0100
@@ -1,7 +1,7 @@
 project(
        'slurp',
        'c',
-       version: '1.0.0',
+       version: '1.0.1',
        license: 'MIT',
        meson_version: '>=0.43.0',
        default_options: [


Reply via email to