添加关闭窗口快捷键
This commit is contained in:
@@ -104,6 +104,15 @@ void select_tag(const user_action_arg_t *arg) {
|
||||
arrange(current_monitor);
|
||||
}
|
||||
|
||||
void kill_client(const user_action_arg_t *arg) {
|
||||
client_t *client = current_monitor->selected_client;
|
||||
if (!client) return;
|
||||
|
||||
if (!send_event(client->window, get_xcb_atom(atom_wm_delete))) {
|
||||
kill_window(client->window);
|
||||
}
|
||||
}
|
||||
|
||||
/* 调试函数,开发完成后删除 */
|
||||
static void print_monitor_list_info(monitor_t *monitor_list) {
|
||||
logger("========================= monitor info =========================\n");
|
||||
|
||||
Reference in New Issue
Block a user