Only damage the focused output
This commit is contained in:
parent
44f54b9933
commit
8440285e8d
|
@ -1105,12 +1105,8 @@ void handle_output_power_manager_set_mode(struct wl_listener *listener,
|
||||||
apply_output_config(oc, output);
|
apply_output_config(oc, output);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void workspace_scroll_mark_dirty() {
|
static void workspace_scroll_mark_dirty(struct sway_output *output) {
|
||||||
// Damage all outputs
|
output_damage_whole(output);
|
||||||
struct sway_output *soutput;
|
|
||||||
wl_list_for_each(soutput, &root->all_outputs, link) {
|
|
||||||
output_damage_whole(soutput);
|
|
||||||
}
|
|
||||||
transaction_commit_dirty();
|
transaction_commit_dirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1149,7 +1145,7 @@ void update_workspace_scroll_percent(int dx, int invert) {
|
||||||
}
|
}
|
||||||
output->workspace_scroll_percent = MIN(max, MAX(min, percent));
|
output->workspace_scroll_percent = MIN(max, MAX(min, percent));
|
||||||
|
|
||||||
workspace_scroll_mark_dirty();
|
workspace_scroll_mark_dirty(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
void snap_workspace_scroll_percent(int dx, int invert) {
|
void snap_workspace_scroll_percent(int dx, int invert) {
|
||||||
|
@ -1194,5 +1190,5 @@ void reset_workspace_scroll_percent() {
|
||||||
|
|
||||||
output->workspace_scroll_percent = 0;
|
output->workspace_scroll_percent = 0;
|
||||||
|
|
||||||
workspace_scroll_mark_dirty();
|
workspace_scroll_mark_dirty(output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue