File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -859,7 +859,7 @@ impl Window {
859
859
860
860
/// Returns if this windows is the current active one
861
861
#[ inline]
862
- pub fn is_active ( & mut self ) -> bool {
862
+ pub fn is_active ( & self ) -> bool {
863
863
self . 0 . is_active ( )
864
864
}
865
865
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ extern "C" {
181
181
fn mfb_set_cursor_visibility ( window : * mut c_void , visibility : bool ) ;
182
182
fn mfb_should_close ( window : * mut c_void ) -> i32 ;
183
183
fn mfb_get_screen_size ( ) -> u32 ;
184
- fn mfb_is_active ( window : * mut c_void ) -> u32 ;
184
+ fn mfb_is_active ( window : * const c_void ) -> u32 ;
185
185
fn mfb_add_menu ( window : * mut c_void , menu : * mut c_void ) -> u64 ;
186
186
fn mfb_add_sub_menu ( parent_menu : * mut c_void , name : * const c_char , menu : * mut c_void ) ;
187
187
fn mfb_active_menu ( window : * mut c_void ) -> i32 ;
@@ -574,7 +574,7 @@ impl Window {
574
574
}
575
575
576
576
#[ inline]
577
- pub fn is_active ( & mut self ) -> bool {
577
+ pub fn is_active ( & self ) -> bool {
578
578
unsafe { mfb_is_active ( self . window_handle ) == 0 }
579
579
}
580
580
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ impl Window {
324
324
}
325
325
}
326
326
327
- pub fn is_active ( & mut self ) -> bool {
327
+ pub fn is_active ( & self ) -> bool {
328
328
match self {
329
329
#[ cfg( feature = "x11" ) ]
330
330
Window :: X11 ( w) => w. is_active ( ) ,
Original file line number Diff line number Diff line change @@ -818,7 +818,7 @@ impl Window {
818
818
}
819
819
820
820
#[ inline]
821
- pub fn is_active ( & mut self ) -> bool {
821
+ pub fn is_active ( & self ) -> bool {
822
822
self . active
823
823
}
824
824
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ impl Window {
247
247
}
248
248
249
249
#[ inline]
250
- pub fn is_active ( & mut self ) -> bool {
250
+ pub fn is_active ( & self ) -> bool {
251
251
self . is_active
252
252
}
253
253
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ impl Window {
423
423
}
424
424
425
425
#[ inline]
426
- pub fn is_active ( & mut self ) -> bool {
426
+ pub fn is_active ( & self ) -> bool {
427
427
window ( )
428
428
. and_then ( |window| window. document ( ) )
429
429
. and_then ( |document| document. active_element ( ) )
Original file line number Diff line number Diff line change @@ -1002,7 +1002,7 @@ impl Window {
1002
1002
}
1003
1003
1004
1004
#[ inline]
1005
- pub fn is_active ( & mut self ) -> bool {
1005
+ pub fn is_active ( & self ) -> bool {
1006
1006
let active = unsafe { winapi:: um:: winuser:: GetActiveWindow ( ) } ;
1007
1007
!active. is_null ( ) && active == self . hwnd
1008
1008
}
You can’t perform that action at this time.
0 commit comments