Skip to content
Snippets Groups Projects
Commit 048464c5 authored by George Nachman's avatar George Nachman
Browse files

Merge branch 'master' of https://github.com/gnachman/iTerm2

parents 93712728 fad75b99
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1386,6 +1386,13 @@ const NSInteger kPSMStartResizeAnimation = 0;
}
 
#pragma mark NSDraggingSource
- (NSDraggingSession *)beginDraggingSessionWithItems:(NSArray<NSDraggingItem *> *)items event:(NSEvent *)event source:(id<NSDraggingSource>)source {
ILog(@"Begin dragging tab bar control %p with event %@ source from\n%@",
self, event, [NSThread callStackSymbols]);
return [super beginDraggingSessionWithItems:items event:event source:source];
}
- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
{
return (isLocal ? NSDragOperationMove : NSDragOperationNone);
Loading
Loading
Loading
Loading
@@ -169,6 +169,7 @@
 
NSDraggingItem *dragItem = [[[NSDraggingItem alloc] initWithPasteboardWriter:pbItem] autorelease];
[dragItem setDraggingFrame:draggingRect contents:imageToDrag];
ILog(@"Begin dragging session for tab bar %p", control);
NSDraggingSession *draggingSession = [control beginDraggingSessionWithItems:@[ dragItem ]
event:event
source:control];
Loading
Loading
Loading
Loading
@@ -31,6 +31,9 @@ CGFloat PerceivedBrightness(CGFloat r, CGFloat g, CGFloat b) {
@implementation NSColor (iTerm)
 
+ (NSColor *)colorWithString:(NSString *)s {
if ([s hasPrefix:@"#"] && s.length == 7) {
return [self colorFromHexString:s];
}
NSData *data = [[[NSData alloc] initWithBase64EncodedString:s options:0] autorelease];
if (!data.length) {
return nil;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment