File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,10 @@ impl App {
139
139
self . render_search_screen ( ui, ctx, preparation, gl_window) ;
140
140
}
141
141
142
- if let Some ( monitor) = gl_window. window ( ) . current_monitor ( ) {
142
+ if let Some ( monitor) = gl_window. get_focused_monitor ( ) {
143
143
let real_height = ui. cursor ( ) . min . y * ctx. pixels_per_point ( ) ;
144
144
let monitor_height = monitor. size ( ) . height ;
145
145
let monitor_width = monitor. size ( ) . width ;
146
-
147
146
let width = self . config . window_width . get_points ( monitor_width as f64 ) as u32 ;
148
147
let height = self . config . window_height . get_points ( monitor_height as f64 ) as u32 ;
149
148
Original file line number Diff line number Diff line change @@ -228,7 +228,6 @@ fn show_window(gl_window: &GlutinWindowContext, show: bool) {
228
228
. get_focused_monitor ( )
229
229
. expect ( "pointer is not on the monitor" ) ;
230
230
gl_window. window ( ) . set_outer_position ( monitor. position ( ) ) ;
231
- gl_window. window ( ) . set_inner_size ( monitor. size ( ) ) ;
232
231
}
233
232
234
233
fn redraw (
You can’t perform that action at this time.
0 commit comments