mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Cleanup previous PR
This commit is contained in:
@@ -229,6 +229,9 @@ Detailed list of changes
|
|||||||
|
|
||||||
- Wayland: Add support for the background blur extension (:iss:`9534`)
|
- Wayland: Add support for the background blur extension (:iss:`9534`)
|
||||||
|
|
||||||
|
- macOS: A new option :opt:`macos_dock_badge_on_bell` to show a badge on the
|
||||||
|
kitty dock icon when a bell occurs (:pull:`9529`)
|
||||||
|
|
||||||
|
|
||||||
0.45.0 [2025-12-24]
|
0.45.0 [2025-12-24]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@@ -67,4 +67,3 @@ void get_cocoa_key_equivalent(uint32_t, int, char *key, size_t key_sz, int*);
|
|||||||
void set_cocoa_pending_action(CocoaPendingAction action, const char*);
|
void set_cocoa_pending_action(CocoaPendingAction action, const char*);
|
||||||
void cocoa_report_live_notifications(const char* ident);
|
void cocoa_report_live_notifications(const char* ident);
|
||||||
void cocoa_set_dock_badge(const char *label);
|
void cocoa_set_dock_badge(const char *label);
|
||||||
void cocoa_clear_dock_badge(void);
|
|
||||||
|
|||||||
@@ -1345,16 +1345,7 @@ void
|
|||||||
cocoa_set_dock_badge(const char *label) {
|
cocoa_set_dock_badge(const char *label) {
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
NSDockTile *dockTile = [NSApp dockTile];
|
NSDockTile *dockTile = [NSApp dockTile];
|
||||||
[dockTile setBadgeLabel:@(label)];
|
[dockTile setBadgeLabel:label ? @(label) : nil];
|
||||||
[dockTile display];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
cocoa_clear_dock_badge(void) {
|
|
||||||
@autoreleasepool {
|
|
||||||
NSDockTile *dockTile = [NSApp dockTile];
|
|
||||||
[dockTile setBadgeLabel:nil];
|
|
||||||
[dockTile display];
|
[dockTile display];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1386,8 +1377,8 @@ init_cocoa(PyObject *module) {
|
|||||||
addObserverForName:NSApplicationDidBecomeActiveNotification
|
addObserverForName:NSApplicationDidBecomeActiveNotification
|
||||||
object:nil
|
object:nil
|
||||||
queue:[NSOperationQueue mainQueue]
|
queue:[NSOperationQueue mainQueue]
|
||||||
usingBlock:^(NSNotification *note __attribute__((unused))) {
|
usingBlock:^(NSNotification *note UNUSED) {
|
||||||
cocoa_clear_dock_badge();
|
cocoa_set_dock_badge(NULL);
|
||||||
}];
|
}];
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user