mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
Remove empty lines
This commit is contained in:
parent
d70e55e0ef
commit
90cbe9ce03
7 changed files with 7 additions and 18 deletions
|
|
@ -17,7 +17,6 @@ static struct cmd_handler touch_handlers[] = {
|
|||
{ "target", touch_cmd_target },
|
||||
};
|
||||
|
||||
|
||||
struct cmd_results *cmd_touch(int argc, char **argv) {
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "touch", EXPECTED_AT_LEAST, 2))) {
|
||||
|
|
|
|||
|
|
@ -26,5 +26,4 @@ struct cmd_results *touch_cmd_binding(int argc, char **argv) {
|
|||
|
||||
config->command = join_args(argv + 1, argc - 1);
|
||||
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -46,7 +46,5 @@ struct cmd_results *touch_cmd_target(int argc, char **argv) {
|
|||
}
|
||||
|
||||
conf->target = target;
|
||||
|
||||
|
||||
return cmd_results_new(CMD_SUCCESS, "Created target: %s", argv[0]);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <libgen.h>
|
||||
#include <libtouch.h>
|
||||
#include <wordexp.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
|
@ -30,7 +31,6 @@
|
|||
#include "stringop.h"
|
||||
#include "list.h"
|
||||
#include "log.h"
|
||||
#include <libtouch.h>
|
||||
|
||||
struct sway_config *config = NULL;
|
||||
|
||||
|
|
@ -132,7 +132,6 @@ void free_config(struct sway_config *config) {
|
|||
}
|
||||
list_free(config->criteria);
|
||||
}
|
||||
|
||||
list_free(config->no_focus);
|
||||
list_free(config->active_bar_modifiers);
|
||||
list_free_items_and_destroy(config->config_chain);
|
||||
|
|
|
|||
|
|
@ -353,6 +353,7 @@ static void handle_touch_down(struct wl_listener *listener, void *data) {
|
|||
struct sway_cursor *cursor = wl_container_of(listener, cursor, touch_down);
|
||||
wlr_idle_notify_activity(server.idle, cursor->seat->wlr_seat);
|
||||
struct wlr_event_touch_down *event = data;
|
||||
|
||||
struct sway_seat *seat = cursor->seat;
|
||||
struct wlr_seat *wlr_seat = seat->wlr_seat;
|
||||
struct wlr_surface *surface = NULL;
|
||||
|
|
@ -406,18 +407,17 @@ static void handle_touch_motion(struct wl_listener *listener, void *data) {
|
|||
wl_container_of(listener, cursor, touch_motion);
|
||||
wlr_idle_notify_activity(server.idle, cursor->seat->wlr_seat);
|
||||
struct wlr_event_touch_motion *event = data;
|
||||
|
||||
struct sway_seat *seat = cursor->seat;
|
||||
struct wlr_seat *wlr_seat = seat->wlr_seat;
|
||||
struct wlr_surface *surface = NULL;
|
||||
|
||||
|
||||
double lx, ly;
|
||||
wlr_cursor_absolute_to_layout_coords(cursor->cursor, event->device,
|
||||
event->x, event->y, &lx, &ly);
|
||||
double sx, sy;
|
||||
node_at_coords(cursor->seat, lx, ly, &surface, &sx, &sy);
|
||||
|
||||
|
||||
sway_log(SWAY_DEBUG, "move gesture");
|
||||
libtouch_progress_register_move(cursor->gesture_tracker, event->time_msec,
|
||||
event->touch_id, lx,ly);
|
||||
|
|
@ -447,8 +447,6 @@ static void handle_touch_motion(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
static double apply_mapping_from_coord(double low, double high, double value) {
|
||||
if (isnan(value)) {
|
||||
return value;
|
||||
|
|
|
|||
|
|
@ -600,11 +600,8 @@ static void seat_configure_touch(struct sway_seat *seat,
|
|||
wlr_cursor_attach_input_device(seat->cursor->cursor,
|
||||
sway_device->input_device->wlr_device);
|
||||
seat_apply_input_config(seat, sway_device);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
static void seat_configure_tablet_tool(struct sway_seat *seat,
|
||||
struct sway_seat_device *sway_device) {
|
||||
seat_configure_xcursor(seat);
|
||||
|
|
@ -1193,6 +1190,7 @@ void seat_apply_config(struct sway_seat *seat,
|
|||
wl_list_for_each(seat_device, &seat->devices, link) {
|
||||
seat_configure_device(seat, seat_device->input_device);
|
||||
}
|
||||
|
||||
if(config->gesture_engine) {
|
||||
sway_log(SWAY_DEBUG, "gesture engine exists");
|
||||
if(seat->cursor->gesture_tracker) {
|
||||
|
|
|
|||
|
|
@ -189,8 +189,6 @@ sway_sources = files(
|
|||
'commands/touch/gesture/pinch.c',
|
||||
'commands/touch/gesture/delay.c',
|
||||
|
||||
|
||||
|
||||
'tree/arrange.c',
|
||||
'tree/container.c',
|
||||
'tree/node.c',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue