Commit Graph

3213 Commits

Author SHA1 Message Date
Lubos Dolezel
81938db4fe Fix an over-release in previous commit 2021-03-01 23:45:33 +01:00
Lubos Dolezel
3ea2095226 Make function keys work in AppKit 2021-03-01 23:42:54 +01:00
Lubos Dolezel
a15b07ca55 Fix NSTextView's cursor movement with mouse 2021-03-01 22:40:53 +01:00
Lubos Dolezel
6a048b60cf Fix glyph advance calculation in CoreText's FT backend 2021-03-01 20:23:05 +01:00
Ariel Abreu
bedacf6515
Add a bunch of class/constant stubs 2021-02-26 12:42:00 -05:00
Ariel Abreu
8aff016e7a
Define/stub some constants 2021-02-22 23:07:15 -05:00
Ariel Abreu
a2fe3674f3
Stub a couple things and define some constants 2021-02-17 13:22:59 -05:00
Ariel Abreu
f585c80808
Workaround freezing bug on window close requests
I'm not entirely sure what was wrong with the old approach of calling it directly, but scheduling the call onto the run loop fixes the freezing.

This commit also fixes a segfault when accessing an invalid window via `lastFocusedWindow`. The issue is that we sometimes don't get FocusOut before a window dies, so we have to set it to nil when it tells us that it's dying.
2021-01-25 23:22:30 -05:00
Ariel Abreu
94994590ac
Fix segfault when not saving new document 2021-01-25 23:17:54 -05:00
Ariel Abreu
98e7f1a359
Make sure to set _viewsNeedDisplay when we're told NO
This fixes rendering in the OpenGL sample app.

What was happening was that on the initial call to `setViewsNeedDisplay` with `YES`, we setup a performer and set `_viewsNeedDisplay`. When the performer fires, it redraws and then calls `setViewsNeedDisplay` with `NO`. However, because our conditional was checking if the argument was `NO` and would return early in that case, we never set `_viewsNeedDisplay` to `NO`, and thus future calls to `setViewsNeedDisplay` saw `_viewsNeedDisplay` was still `YES` and returned early without setting up a performer.
2020-12-14 12:48:08 -05:00
Ariel Abreu
75d6ef46a7
Fix for Clang 11+ 2020-12-01 23:45:54 -05:00
Ariel Abreu
e3915265a8
Merge remote-tracking branch 'origin/master' into update-sources 2020-11-10 11:01:54 -05:00
Ariel Abreu
f8a67fbd96
Enable OBJC_OLD_DISPATCH_PROTOTYPES 2020-09-01 10:02:36 -04:00
Thomas A
00fd3b9741 Fix Black Window Bug
cda40d9947 Introduces the bug
6453711d11 Partially fixes the bug, but didn't change _cglWindow to _cglContext
2020-08-08 12:59:12 -07:00
Ariel Abreu
f7ebb81c44
Fix glMultiDrawElements and glShaderSource declarations in gl.h
My compiler was complaining about conflicting declarations between gl.h and glext.h

Honestly, I'm not sure why those functions are in both headers, but 🤷
2020-08-01 22:08:23 -04:00
Ariel Abreu
cbed56b6d6 Merge remote-tracking branch 'origin/master' into update-sources 2020-07-18 16:42:33 -04:00
Thomas A
1a430280c1 Print missing methods for empty stubs 2020-07-18 08:41:35 -07:00
Thomas A
0f4622a8f9 Add stubs for WeChat 2020-07-18 08:40:47 -07:00
Thomas A
dd03d4d769 Add NSFullScreenModeApplicationPresentationOptions, NSAllRomanInputSourcesLocaleIdentifier, and NSImageHintInterpolation 2020-07-06 22:04:05 -07:00
Thomas A
2c7099f66b Implement allowsEditingTextAttributes 2020-07-05 13:49:34 -07:00
Ariel Abreu
228a30a672
Merge remote-tracking branch 'origin/master' into update-sources 2020-06-15 14:30:17 -04:00
Sergey Bugaev
bd740e4feb
Merge pull request #12 from TheBrokenRail/add-missing-apis
Add Some Missing APIs
2020-05-23 18:14:01 +03:00
TheBrokenRail
03024249b6 Add Some Missing APIs
Fix Syntax

Fix Memory Leak

Fix Block Syntax

You would think this would be consistent.

Co-authored-by: Sergey Bugaev <bugaevc@gmail.com>
2020-05-18 14:34:09 -04:00
Lubos Dolezel
6453711d11 Fix the build and review comments 2020-05-15 12:38:22 +02:00
Lubos Dolezel
b26bedb31c CGS work progress 2020-05-15 10:47:23 +02:00
Sergey Bugaev
9c53557e4c
Merge pull request #10 from TheBrokenRail/code-formatting
Code Formatting Using Patched ClangFormat
2020-05-14 22:27:30 +03:00
Ariel Abreu
e44fa3e280
Initial update to clean up include directories
"initial" because there might some additional modifications necessary later on
2020-05-14 12:57:38 -04:00
TheBrokenRail
e84bc784cd Improve Patch and Format New Code 2020-05-13 11:33:22 -04:00
TheBrokenRail
b6548a202d Fix Continuation Indent 2020-05-12 17:04:16 -04:00
TheBrokenRail
98620811ce Better Braces 2020-05-12 17:04:16 -04:00
TheBrokenRail
55c7b99e5d Proper Braces 2020-05-12 17:04:16 -04:00
TheBrokenRail
e93ed1d775 Remove Debug 2020-05-12 17:04:15 -04:00
TheBrokenRail
cda40d9947 Code Formatting Using Patched ClangFormat 2020-05-12 17:04:15 -04:00
Lubos Dolezel
34d6c63ac2 Use NSCoding in CGEvent 2020-05-12 22:27:04 +02:00
Lubos Dolezel
5f5fbc7a69 Work on Quartz Event Services 2020-05-12 22:09:19 +02:00
Lubos Dolezel
3596c05f26 Initial work on implementing CGS* APIs and moving platform abstraction into QuartzCore 2020-05-12 16:42:00 +02:00
Luboš Doležel
b161a5e30a
Merge pull request #11 from r-wilbur/fix-config
Fix spelling of cmake macro for Xkbfile include path.
2020-05-12 08:46:20 +02:00
r-wilbur
b8b3b88902 Fix spelling of cmake macro for Xkbfile include path.
Use cmake macro for Xkbfile include path as shown in cmake
documentation:
https://cmake.org/cmake/help/v3.13/module/FindX11.html?highlight=x11_xkbfile
2020-05-11 23:10:25 -06:00
Lubos Dolezel
73e689b9e0 Fix CGError.h 2020-05-10 15:17:57 +02:00
Luboš Doležel
09e26bd63b
Merge pull request #7 from r-wilbur/fix-config
Fix name of X11 libXkbfile.
2020-05-09 20:46:33 +02:00
r-wilbur
4b8ec14a58 Fix name of X11 libXkbfile. 2020-05-09 10:56:56 -06:00
Luboš Doležel
ad52bfd520
Merge pull request #6 from danix800/master
Fix darlinghq/darling#775
2020-05-09 13:28:21 +02:00
Ding Fei
06eb892e2a
Fix darlinghq/darling #775
refer to CMake package for X11: /usr/share/cmake-$CMAKE_VERSION/Modules/FindX11.cmake for more details.
2020-05-09 17:57:29 +08:00
Lubos Dolezel
66952e6552 X11Display: Provide more kbd layout information 2020-05-07 10:06:36 +02:00
Thomas A
9bb1d9f34f Add NSMovie and NSMovieView stubs
Implementing these classes may be more harder since most of the functionality is gone on recent version of MacOS.
2020-05-06 09:30:31 -07:00
Lubos Dolezel
8129d25447 Add CT constants used by Qt 2020-05-06 12:45:35 +02:00
Ariel Abreu
10e4a6c644
Update CoreVideo framework reexport path 2020-05-05 12:19:20 -04:00
Thomas A
69fdf6b17c Add functions and variables for glut 2020-05-02 15:01:38 -07:00
Lubos Dolezel
5c8ff30d69 Implement MacWorkspace's URLForApplicationWithBundleIdentifier and fullPathForApplication 2020-04-20 23:07:58 +02:00
Lubos Dolezel
7957018d4e Add NSWorkspace fullPathForApplication stub 2020-04-20 22:45:30 +02:00