Skip to content

Commit

Permalink
output: drop current_mode
Browse files Browse the repository at this point in the history
This is now unused.
  • Loading branch information
emersion committed Jul 31, 2023
1 parent 170598d commit f8ddd97
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions include/sway/output.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ struct sway_output {
int width, height; // transformed buffer size
enum wl_output_subpixel detected_subpixel;
enum scale_filter_mode scale_filter;
// last applied mode when the output is powered off
struct wlr_output_mode *current_mode;

bool enabling, enabled;
list_t *workspaces;
Expand Down
4 changes: 0 additions & 4 deletions sway/config/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,6 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
struct wlr_output_state pending = {0};
queue_output_config(oc, output, &pending);

if (!oc || oc->power != 0) {
output->current_mode = pending.mode;
}

sway_log(SWAY_DEBUG, "Committing output %s", wlr_output->name);
if (!wlr_output_commit_state(wlr_output, &pending)) {
// Failed to commit output changes, maybe the output is missing a CRTC.
Expand Down
1 change: 0 additions & 1 deletion sway/tree/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ void output_disable(struct sway_output *output) {
list_del(root->outputs, index);

output->enabled = false;
output->current_mode = NULL;

arrange_root();

Expand Down

0 comments on commit f8ddd97

Please sign in to comment.