diff options
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 00dc4721..65ca0c9c 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -399,6 +399,12 @@ void view_request_activate(struct sway_view *view, struct sway_seat *seat) { | |||
399 | transaction_commit_dirty(); | 399 | transaction_commit_dirty(); |
400 | } | 400 | } |
401 | 401 | ||
402 | void view_request_urgent(struct sway_view *view) { | ||
403 | if (config->focus_on_window_activation != FOWA_NONE) { | ||
404 | view_set_urgent(view, true); | ||
405 | } | ||
406 | } | ||
407 | |||
402 | void view_set_csd_from_server(struct sway_view *view, bool enabled) { | 408 | void view_set_csd_from_server(struct sway_view *view, bool enabled) { |
403 | sway_log(SWAY_DEBUG, "Telling view %p to set CSD to %i", view, enabled); | 409 | sway_log(SWAY_DEBUG, "Telling view %p to set CSD to %i", view, enabled); |
404 | if (view->xdg_decoration) { | 410 | if (view->xdg_decoration) { |