mirror of
https://github.com/yshui/picom.git
synced 2025-04-07 17:44:04 -04:00

A toplevel is marked active if its client window is focused. So when a toplevel's client window changes, focus must be rechecked. Fix the problem that no window is marked active from the point when picom is just started, until the first focus change. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
10 lines
248 B
C
10 lines
248 B
C
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2019, Yuxuan Shui <yshuiv7@gmail.com>
|
|
|
|
#pragma once
|
|
#include <xcb/xcb.h>
|
|
|
|
#include "common.h"
|
|
|
|
void ev_handle(session_t *ps, xcb_generic_event_t *ev);
|
|
void ev_update_focused(struct session *ps);
|