fix: switch to mango session fail from other vt

This commit is contained in:
DreamMaoMao
2025-12-30 10:25:00 +08:00
parent 35dd788ca3
commit ed1612f1bd
4 changed files with 13 additions and 20 deletions

View File

@@ -760,7 +760,6 @@ static void resize_tile_client(Client *grabc, bool isdrag, int offsetx,
static void refresh_monitors_workspaces_status(Monitor *m);
static void init_client_properties(Client *c);
static float *get_border_color(Client *c);
static void request_fresh_all_monitors(void);
static void clear_fullscreen_and_maximized_state(Monitor *m);
#include "data/static_keymap.h"
@@ -4294,6 +4293,11 @@ void rendermon(struct wl_listener *listener, void *data) {
need_more_frames = layer_draw_fadeout_frame(l) || need_more_frames;
}
// 如果需要更多帧,确保安排下一帧
if (need_more_frames) {
wlr_output_schedule_frame(m->wlr_output);
}
// 绘制客户端
wl_list_for_each(c, &clients, link) {
need_more_frames = client_draw_frame(c) || need_more_frames;
@@ -4320,11 +4324,6 @@ skip:
wlr_scene_output_send_frame_done(m->scene_output, &now);
wlr_output_state_finish(&pending);
}
// 如果需要更多帧,确保安排下一帧
if (need_more_frames) {
request_fresh_all_monitors();
}
}
void requestdecorationmode(struct wl_listener *listener, void *data) {