Commit Graph

3138 Commits

Author SHA1 Message Date
Andrew Hyatt
d5496c73f3
Clean up build output 2020-03-17 14:24:42 -04:00
Lubos Dolezel
0d0fbfd060 Rework the previous commit 2020-02-29 17:30:55 +01:00
Lubos Dolezel
0dfbfa5e8f Implement NSBundle's currentNibLoadingBundle and currentNibPath 2020-02-29 16:57:27 +01:00
Lubos Dolezel
f325ff3c04 Define selectedTextBackgroundColor 2020-02-26 17:55:06 +01:00
Lubos Dolezel
f610b22d14 Correct include path for HIToolbox/Events.h 2020-02-24 23:16:36 +01:00
Sergey Bugaev
42dc8c10a7 Fix changing _NET_WM_STATE
The protocol for *changing* _NET_WM_STATE on a mapped window is different from
how you initially set it on an unmapped window.
2020-02-23 20:32:22 +03:00
Sergey Bugaev
56b2f1cb83 Fix some types 2020-02-23 19:20:11 +03:00
Lubos Dolezel
01bc16fe02 Fix a crash for apps without icons 2020-02-22 21:47:26 +01:00
Sergey Bugaev
2b2fe77e33 Fix a warning 2020-02-21 13:37:14 +03:00
Sergey Bugaev
2229b39386 Fix accidentally drawing the clipping path in O2PDFContext
The "W" operator set the clipping path to the current path, but it does not
consume the current path; which means we were continuing to append to the
same path when we thought we started the next one. Fix this by emitting the
"n" (path no-op) operator, which seems to be the usual pattern for doing this.
2020-02-21 13:32:40 +03:00
Lubos Dolezel
fd2b95e594 Add MacWorkspace stub class 2020-02-21 11:09:54 +01:00
Lubos Dolezel
d6e5cc7422 Add missing NSText methods used by Steam 2020-02-20 21:42:49 +01:00
Sergey Bugaev
e6398f0123
Merge pull request #5 from TheBrokenRail/patch-4
Fix darlinghq/darling#670
2020-02-18 20:12:06 +03:00
TheBrokenRail
4f983b97ab Ensure -[NSWindow setIsVisible:] creates a platform window
Fixes darlinghq/darling#670
2020-02-18 12:08:54 -05:00
Lubos Dolezel
09b7d929dd Fixes for captured mouse and relative mouse input 2020-02-18 09:54:09 +01:00
Lubos Dolezel
c32c79e6df Use system libgif, support GIF transparency 2020-02-18 09:51:17 +01:00
Lubos Dolezel
dfcb12d759 Support non-resizable windows, work on relative mouse events, crash fixes 2020-02-17 18:40:13 +01:00
Lubos Dolezel
c03a69bed1 Add new NSWindowStyleMask constants, add toggleFullScreen 2020-02-15 23:25:51 +01:00
Lubos Dolezel
00f371bd21 Restore previous context in -[X11Window openGLFlushBuffer] 2020-02-15 23:00:40 +01:00
Sergey Bugaev
1a36babf58 Avoid creating platform windows too early 2020-02-16 00:56:20 +03:00
Sergey Bugaev
7d9c778c07 Set WM_TRANSIENT_FOR, _NET_WM_STATE and _NET_WM_WINDOW_TYPE
This will help X11 window managers manage our windows properly.
2020-02-16 00:55:38 +03:00
Sergey Bugaev
2fe0cab347 Code style improvements 2020-02-16 00:54:40 +03:00
Sergey Bugaev
aa6aef96ab Change CGWindow creation API
You are now supposed to call -[NSDisplay newWindowWithDelegate: window];
this will both set the delegate and read all the relevant properties from it,
instead of you having to pass them manually.
2020-02-16 00:51:21 +03:00
Lubos Dolezel
92a98d937a Remove printfs 2020-02-15 18:48:26 +01:00
Lubos Dolezel
64c47815b2 Working basic SDL keyboard & mouse 2020-02-15 18:47:25 +01:00
Lubos Dolezel
4c8d930356 Some screen mode bugfixes, look for Xext 2020-02-15 16:23:44 +01:00
Lubos Dolezel
2cfef9208b define windowFrameColor, use softer gray color for menu 2020-02-14 19:37:56 +01:00
Lubos Dolezel
51b54ea0d7 Don't throw when nil is passed to [NSImage imageNamed] 2020-02-14 14:19:20 +01:00
Lubos Dolezel
c796e5c8d6 Fix a regression, implement (de)miniaturize 2020-02-14 10:31:01 +01:00
Lubos Dolezel
2dd0310c31 Implement cursor hide / unhide 2020-02-13 22:41:34 +01:00
Lubos Dolezel
1d6ab04c70 X11Cursor implementation 2020-02-13 22:25:44 +01:00
Lubos Dolezel
7b5cfcf0b5 Changes and improvements with relation to keyboard input 2020-02-13 19:01:29 +01:00
Lubos Dolezel
27e492a773 Fix an X11 error when getting the display mode of an offline display 2020-02-13 10:56:47 +01:00
Lubos Dolezel
b764b02d43 Fixes 2020-02-13 10:45:35 +01:00
Lubos Dolezel
500c15e7c6 Small changes, mainly for CoreVideo 2020-02-13 10:28:51 +01:00
Lubos Dolezel
a7522bbd6b Mainly CGDisplay fixes 2020-02-12 22:36:45 +01:00
Lubos Dolezel
fccdb6a87c More work on CGDirectDisplay 2020-02-10 21:59:34 +01:00
Lubos Dolezel
2f1912988f Build fix 2020-02-09 21:52:13 +01:00
Lubos Dolezel
8683954c21 A lot of CGDirectDisplay-related APIs, so far not tested 2020-02-09 21:31:32 +01:00
Lubos Dolezel
67c95bbab1 Add NSApplication setAppleMenu stub 2020-02-09 12:13:40 +01:00
Lubos Dolezel
af0f0c6a1b Implement NSWindowDidExposeNotification (required by SDL) 2020-02-09 12:04:50 +01:00
Lubos Dolezel
dbf2007ef0 Add various stubs, call CFRunLoopAddCommonMode() from the right place 2020-02-08 21:24:27 +01:00
Lubos Dolezel
a445289f3b Add NSModalPanelRunLoopMode and NSEventTrackingRunLoopMode as runloop common modes 2020-02-08 19:44:43 +01:00
Andrew Hyatt
255b78624f
Fix build issue caused by reorganization 2020-01-08 23:41:11 -05:00
Andrew Hyatt
02a36f5f83
Merge pull request #3 from TheBrokenRail/patch-1
Implement setIsVisible
2020-01-07 22:34:13 -05:00
Andrew Hyatt
afd667f0bc
Merge pull request #4 from TheBrokenRail/patch-3
Fix darlinghq/darling#611
2020-01-07 22:16:52 -05:00
TheBrokenRail
a8cc09eba4 Implement -[NSWindow setIsVisible:] 2020-01-05 16:59:26 -05:00
TheBrokenRail
bd8c696aaa
Fix darlinghq/darling#611 2020-01-05 15:14:40 -05:00
Andrew Hyatt
2e09764d1f
AppKit and CoreGraphics improvements for Sketch
darlinghq/darling#494
2019-08-13 21:55:33 -04:00
CuriousTommy
b583fd29ca Implement stubs for iTerm2 (#2)
* Implements the following variables for NSDraggingItem

NSDraggingImageComponentIconKey
NSDraggingImageComponentKey

* Implement NSMenuDidEndTrackingNotification for NSMenu

* Implements the following variables for NSWorkspace.m

NSWorkspaceDidDeactivateApplicationNotification
NSWorkspaceSessionDidBecomeActiveNotification
NSWorkspaceSessionDidResignActiveNotification

* Fix NSSharingService

* Use APPKIT_EXPORT instead of extern
2019-07-30 18:03:33 -04:00