Compare commits
3 Commits
e2177689c2
...
2860b6f48b
Author | SHA1 | Date | |
---|---|---|---|
2860b6f48b | |||
f9aafbd339 | |||
|
cd216908a7 |
9
dwl.c
9
dwl.c
@ -359,7 +359,9 @@ 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);
|
||||
@ -791,6 +793,9 @@ 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;
|
||||
@ -973,8 +978,6 @@ 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
|
||||
@ -2977,6 +2980,7 @@ tile(Monitor *m)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAS_TOGGLE_TOUCH
|
||||
void
|
||||
toggle_touch_input_device(const Arg *arg) {
|
||||
if (cfg_disable_touchpad) {
|
||||
@ -2992,6 +2996,7 @@ 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user