simplify check in urgent()

we only care if it returned a client or not
このコミットが含まれているのは:
Leonardo Hernández Hernández 2022-12-30 14:29:19 -06:00
コミット 0b2c33248c
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: E538897EE11B9624
1個のファイルの変更2行の追加2行の削除

4
dwl.c
ファイルの表示

@ -2523,8 +2523,8 @@ urgent(struct wl_listener *listener, void *data)
{
struct wlr_xdg_activation_v1_request_activate_event *event = data;
Client *c = NULL;
int type = toplevel_from_wlr_surface(event->surface, &c, NULL);
if (type >= 0 && type != LayerShell && c != focustop(selmon)) {
toplevel_from_wlr_surface(event->surface, &c, NULL);
if (c && c != focustop(selmon)) {
c->isurgent = 1;
printstatus();
}