]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Remove unused variables
authorJohan Malm <jgm323@gmail.com>
Sat, 11 May 2019 20:47:48 +0000 (21:47 +0100)
committerJohan Malm <jgm323@gmail.com>
Sat, 11 May 2019 20:47:48 +0000 (21:47 +0100)
.gitignore
tinywl.c

index c6127b38c1aa25968a88db3940604d41529e4cf5..a4177df0985ae0ac896a7b0cf7ee352ebeaa8d03 100644 (file)
@@ -1,52 +1,2 @@
-# Prerequisites
-*.d
-
-# Object files
 *.o
-*.ko
-*.obj
-*.elf
-
-# Linker output
-*.ilk
-*.map
-*.exp
-
-# Precompiled Headers
-*.gch
-*.pch
-
-# Libraries
-*.lib
-*.a
-*.la
-*.lo
-
-# Shared objects (inc. Windows DLLs)
-*.dll
-*.so
-*.so.*
-*.dylib
-
-# Executables
-*.exe
-*.out
-*.app
-*.i*86
-*.x86_64
-*.hex
-
-# Debug files
-*.dSYM/
-*.su
-*.idb
-*.pdb
-
-# Kernel Module Compile Results
-*.mod*
-*.cmd
-.tmp_versions/
-modules.order
-Module.symvers
-Mkfile.old
-dkms.conf
+xdg-shell-protocol.*
index ca5cdc910ee87579629203f604599db96128d95e..a9cfe149bb3459050a83b1333f74529b29e15578 100644 (file)
--- a/tinywl.c
+++ b/tinywl.c
@@ -309,9 +309,6 @@ static bool view_at(struct tinywl_view *view,
         */
        double view_sx = lx - view->x;
        double view_sy = ly - view->y;
-
-       struct wlr_surface_state *state = &view->xdg_surface->surface->current;
-
        double _sx, _sy;
        struct wlr_surface *_surface = NULL;
        _surface = wlr_xdg_surface_surface_at(
@@ -475,7 +472,6 @@ static void server_cursor_button(struct wl_listener *listener, void *data) {
        wlr_seat_pointer_notify_button(server->seat,
                        event->time_msec, event->button, event->state);
        double sx, sy;
-       struct wlr_seat *seat = server->seat;
        struct wlr_surface *surface;
        struct tinywl_view *view = desktop_view_at(server,
                        server->cursor->x, server->cursor->y, &surface, &sx, &sy);