Skip to content

Commit

Permalink
Ensure update scaling is done when monitors are notified #32
Browse files Browse the repository at this point in the history
  • Loading branch information
fossfreedom committed Sep 23, 2024
1 parent fe8a2c3 commit ab00ad0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/x11/meta-x11-display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ meta_x11_display_new (MetaDisplay *display,
"monitors-changed-internal",
G_CALLBACK (on_monitors_changed_internal),
x11_display,
0);
G_CONNECT_AFTER);

init_leader_window (x11_display, &timestamp);
x11_display->timestamp = timestamp;
Expand Down Expand Up @@ -1914,6 +1914,8 @@ on_monitors_changed_internal (MetaMonitorManager *monitor_manager,
}

x11_display->has_xinerama_indices = FALSE;

update_ui_scaling_factor (x11_display);
}

void
Expand Down

0 comments on commit ab00ad0

Please sign in to comment.