|
|
|
@@ -803,8 +803,10 @@ commitnotify(struct wl_listener *listener, void *data)
|
|
|
|
|
* a wrong monitor.
|
|
|
|
|
*/
|
|
|
|
|
applyrules(c);
|
|
|
|
|
wlr_surface_set_preferred_buffer_scale(client_surface(c), (int)ceilf(c->mon->wlr_output->scale));
|
|
|
|
|
wlr_fractional_scale_v1_notify_scale(client_surface(c), c->mon->wlr_output->scale);
|
|
|
|
|
if (c->mon) {
|
|
|
|
|
wlr_surface_set_preferred_buffer_scale(client_surface(c), (int)ceilf(c->mon->wlr_output->scale));
|
|
|
|
|
wlr_fractional_scale_v1_notify_scale(client_surface(c), c->mon->wlr_output->scale);
|
|
|
|
|
}
|
|
|
|
|
setmon(c, NULL, 0); /* Make sure to reapply rules in mapnotify() */
|
|
|
|
|
|
|
|
|
|
wlr_xdg_toplevel_set_wm_capabilities(c->surface.xdg->toplevel, WLR_XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
|
|
|
|
@@ -1175,7 +1177,6 @@ void
|
|
|
|
|
destroydecoration(struct wl_listener *listener, void *data)
|
|
|
|
|
{
|
|
|
|
|
Client *c = wl_container_of(listener, c, destroy_decoration);
|
|
|
|
|
c->decoration = NULL;
|
|
|
|
|
|
|
|
|
|
wl_list_remove(&c->destroy_decoration.link);
|
|
|
|
|
wl_list_remove(&c->set_decoration_mode.link);
|
|
|
|
@@ -1590,6 +1591,7 @@ keypress(struct wl_listener *listener, void *data)
|
|
|
|
|
|
|
|
|
|
int handled = 0;
|
|
|
|
|
uint32_t mods = wlr_keyboard_get_modifiers(&group->wlr_group->keyboard);
|
|
|
|
|
static bool consumed[KEY_MAX + 1];
|
|
|
|
|
|
|
|
|
|
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
|
|
|
|
|
|
|
|
|
@@ -1611,9 +1613,16 @@ keypress(struct wl_listener *listener, void *data)
|
|
|
|
|
wl_event_source_timer_update(group->key_repeat_source, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (handled)
|
|
|
|
|
if (handled) {
|
|
|
|
|
consumed[event->keycode] = true;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (consumed[event->keycode]) {
|
|
|
|
|
if (event->state == WL_KEYBOARD_KEY_STATE_RELEASED)
|
|
|
|
|
consumed[event->keycode] = false;
|
|
|
|
|
return; // don't pass to the client the release event of a handled key-press
|
|
|
|
|
}
|
|
|
|
|
wlr_seat_set_keyboard(seat, &group->wlr_group->keyboard);
|
|
|
|
|
/* Pass unhandled keycodes along to the client. */
|
|
|
|
|
wlr_seat_keyboard_notify_key(seat, event->time_msec,
|
|
|
|
@@ -3141,7 +3150,7 @@ sethints(struct wl_listener *listener, void *data)
|
|
|
|
|
{
|
|
|
|
|
Client *c = wl_container_of(listener, c, set_hints);
|
|
|
|
|
struct wlr_surface *surface = client_surface(c);
|
|
|
|
|
if (c == focustop(selmon))
|
|
|
|
|
if (c == focustop(selmon) || !c->surface.xwayland->hints)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);
|
|
|
|
|