Skip to content

Commit ed065a1

Browse files
committed
Fix resolution changing
1 parent 0c14552 commit ed065a1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/vonal_daemon/app.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,10 @@ impl App {
139139
self.render_search_screen(ui, ctx, preparation, gl_window);
140140
}
141141

142-
if let Some(monitor) = gl_window.window().current_monitor() {
142+
if let Some(monitor) = gl_window.get_focused_monitor() {
143143
let real_height = ui.cursor().min.y * ctx.pixels_per_point();
144144
let monitor_height = monitor.size().height;
145145
let monitor_width = monitor.size().width;
146-
147146
let width = self.config.window_width.get_points(monitor_width as f64) as u32;
148147
let height = self.config.window_height.get_points(monitor_height as f64) as u32;
149148

src/vonal_daemon/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ fn show_window(gl_window: &GlutinWindowContext, show: bool) {
228228
.get_focused_monitor()
229229
.expect("pointer is not on the monitor");
230230
gl_window.window().set_outer_position(monitor.position());
231-
gl_window.window().set_inner_size(monitor.size());
232231
}
233232

234233
fn redraw(

0 commit comments

Comments
 (0)