Compare commits

..

No commits in common. "2860b6f48bbd5ac188dc2cfffecf8bd6474f790b" and "e2177689c283a4fbcbc949245220c58c5b302c15" have entirely different histories.

9
dwl.c
View File

@ -359,9 +359,7 @@ static void startdrag(struct wl_listener *listener, void *data);
static void tag(const Arg *arg);
static void tagmon(const Arg *arg);
static void tile(Monitor *m);
#ifdef HAS_TOGGLE_TOUCH
static void toggle_touch_input_device(const Arg *arg);
#endif
static void togglebar(const Arg *arg);
static void togglefloating(const Arg *arg);
static void togglefullscreen(const Arg *arg);
@ -793,9 +791,6 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data)
struct wlr_layer_surface_v1_state old_state;
if (l->layer_surface->initial_commit) {
wlr_fractional_scale_v1_notify_scale(layer_surface->surface, l->mon->wlr_output->scale);
wlr_surface_set_preferred_buffer_scale(layer_surface->surface, (int32_t)ceilf(l->mon->wlr_output->scale));
/* Temporarily set the layer's current state to pending
* so that we can easily arrange it */
old_state = l->layer_surface->current;
@ -978,6 +973,8 @@ createlayersurface(struct wl_listener *listener, void *data)
wl_list_insert(&l->mon->layers[layer_surface->pending.layer],&l->link);
wlr_surface_send_enter(surface, layer_surface->output);
wlr_fractional_scale_v1_notify_scale(surface, l->mon->wlr_output->scale);
wlr_surface_set_preferred_buffer_scale(surface, (int32_t)ceilf(l->mon->wlr_output->scale));
}
void
@ -2980,7 +2977,6 @@ tile(Monitor *m)
}
}
#ifdef HAS_TOGGLE_TOUCH
void
toggle_touch_input_device(const Arg *arg) {
if (cfg_disable_touchpad) {
@ -2996,7 +2992,6 @@ toggle_touch_input_device(const Arg *arg) {
libinput_device_get_id_vendor(touch_input_device),
libinput_device_get_id_product(touch_input_device));
}
#endif
void
togglebar(const Arg *arg) {