Commit 46f8211b authored by Guido Gunther's avatar Guido Gunther

PhoshMonitor: remember preferred mode as well

parent aec5a8c5
......@@ -102,6 +102,9 @@ output_handle_mode (void *data,
if ((flags & WL_OUTPUT_MODE_CURRENT) == 1)
self->current_mode = self->modes->len - 1;
if ((flags & WL_OUTPUT_MODE_PREFERRED) == 1)
self->preferred_mode = self->modes->len - 1;
}
......
......@@ -34,6 +34,7 @@ struct _PhoshMonitor {
GArray *modes;
guint current_mode;
guint preferred_mode;
gboolean done;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment