mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-24 01:40:14 -05:00
fix: switch to mango session fail from other vt
This commit is contained in:
parent
7140070580
commit
6f13b96dc9
4 changed files with 13 additions and 20 deletions
11
src/mango.c
11
src/mango.c
|
|
@ -764,7 +764,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"
|
||||
|
|
@ -4234,6 +4233,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;
|
||||
|
|
@ -4260,11 +4264,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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue