mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-06 07:15:53 -04:00
修复窗口打开黑影
This commit is contained in:
parent
c68ac07863
commit
196c5d1078
1 changed files with 8 additions and 8 deletions
16
maomao.c
16
maomao.c
|
|
@ -3641,6 +3641,14 @@ rendermon(struct wl_listener *listener, void *data) {
|
|||
struct timespec now;
|
||||
bool need_more_frames = false;
|
||||
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
need_more_frames = client_draw_frame(c);
|
||||
}
|
||||
|
||||
if (need_more_frames) {
|
||||
wlr_output_schedule_frame(m->wlr_output);
|
||||
}
|
||||
|
||||
/* Render if no XDG clients have an outstanding resize and are visible on
|
||||
* this monitor. */
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
|
|
@ -3679,14 +3687,6 @@ rendermon(struct wl_listener *listener, void *data) {
|
|||
|
||||
skip:
|
||||
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
need_more_frames = client_draw_frame(c);
|
||||
}
|
||||
|
||||
if (need_more_frames) {
|
||||
wlr_output_schedule_frame(m->wlr_output);
|
||||
}
|
||||
|
||||
struct wlr_scene_output *scene_output =
|
||||
wlr_scene_get_scene_output(scene, m->wlr_output);
|
||||
wlr_scene_output_commit(scene_output, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue