mac: 'implement' tool windows
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
65afd85439
commit
128a1ec524
1 changed files with 9 additions and 0 deletions
|
|
@ -294,11 +294,15 @@ static NSPoint pointFlip(NSPoint point) {
|
||||||
[pool release];
|
[pool release];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/* run through the switch case on ev.type, before calling sendEvent on any
|
||||||
|
* events we handle */
|
||||||
[self eventProcess:ev];
|
[self eventProcess:ev];
|
||||||
[pool release];
|
[pool release];
|
||||||
}
|
}
|
||||||
|
|
||||||
[self sendClipboardEvent];
|
[self sendClipboardEvent];
|
||||||
|
|
||||||
|
[self->application updateWindows];
|
||||||
};
|
};
|
||||||
|
|
||||||
- (void)eventProcess:(NSEvent *)ev {
|
- (void)eventProcess:(NSEvent *)ev {
|
||||||
|
|
@ -721,6 +725,11 @@ static NSPoint pointFlip(NSPoint point) {
|
||||||
// forType:NSPasteboardTypeString]; [pool release];
|
// forType:NSPasteboardTypeString]; [pool release];
|
||||||
};
|
};
|
||||||
- (void)makeToolWindow {
|
- (void)makeToolWindow {
|
||||||
|
/* If my understand of what a "tool window" usually is is correct then I
|
||||||
|
* highly doubt the Mac OS has this and if they did they probably outright
|
||||||
|
* removed it along time ago is this kind of conflicts with modern UX. So
|
||||||
|
* we'll just make it borderless idgaf */
|
||||||
|
[self makeBorderless:MwTRUE];
|
||||||
};
|
};
|
||||||
- (void)getCursorCoord:(MwPoint *)point {
|
- (void)getCursorCoord:(MwPoint *)point {
|
||||||
NSPoint p = [NSEvent mouseLocation];
|
NSPoint p = [NSEvent mouseLocation];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue