mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 10:29:49 +01:00
Revert "output: add block_idle_frame"
This reverts commit cbb2781fed
.
In [1], we found issues with block_idle_frame and replaced it with
frame_pending. block_idle_frame is now unused.
[1]: https://github.com/swaywm/sway/pull/4772
This commit is contained in:
parent
ce5040a5a1
commit
dc6ef658b6
2 changed files with 1 additions and 4 deletions
|
@ -148,8 +148,6 @@ struct wlr_output {
|
||||||
struct wl_listener display_destroy;
|
struct wl_listener display_destroy;
|
||||||
|
|
||||||
void *data;
|
void *data;
|
||||||
|
|
||||||
bool block_idle_frame;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wlr_output_event_precommit {
|
struct wlr_output_event_precommit {
|
||||||
|
|
|
@ -544,8 +544,7 @@ void wlr_output_send_frame(struct wlr_output *output) {
|
||||||
static void schedule_frame_handle_idle_timer(void *data) {
|
static void schedule_frame_handle_idle_timer(void *data) {
|
||||||
struct wlr_output *output = data;
|
struct wlr_output *output = data;
|
||||||
output->idle_frame = NULL;
|
output->idle_frame = NULL;
|
||||||
if (!output->frame_pending && output->impl->schedule_frame
|
if (!output->frame_pending && output->impl->schedule_frame) {
|
||||||
&& !output->block_idle_frame) {
|
|
||||||
// Ask the backend to send a frame event when appropriate
|
// Ask the backend to send a frame event when appropriate
|
||||||
if (output->impl->schedule_frame(output)) {
|
if (output->impl->schedule_frame(output)) {
|
||||||
output->frame_pending = true;
|
output->frame_pending = true;
|
||||||
|
|
Loading…
Reference in a new issue