mirror of
https://github.com/alacritty/alacritty.git
synced 2026-11-29 00:29:47 +03:00
Request user attention when bell received in macOS
We now request the user's attention in macOS when a visual bell character is received. This manifests as the window jumping up and down in the dock.
This commit is contained in:
1 parent
e690a1444e
commit
ca9a259caa
2 files changed
+8
-10
No files matched your search
+7
-10
@@ -361,16 +361,13 @@ impl Window {
|
||||
self.window.set_urgent(is_urgent);
|
||||
}
|
||||
|
||||
#[cfg(
|
||||
not(
|
||||
any(
|
||||
target_os = "linux",
|
||||
target_os = "freebsd",
|
||||
target_os = "dragonfly",
|
||||
target_os = "openbsd"
|
||||
)
|
||||
)
|
||||
)]
|
||||
#[cfg(target_os = "macos")]
|
||||
pub fn set_urgent(&self, is_urgent: bool) {
|
||||
use glutin::os::macos::WindowExt;
|
||||
self.window.request_user_attention(is_urgent);
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
pub fn set_urgent(&self, _is_urgent: bool) {}
|
||||
|
||||
pub fn set_ime_spot(&self, pos: LogicalPosition) {
|
||||
|
||||
Reference in new issue
Block a user