LD
28f49ffd0b
cocoadisplay: Use [event charactersIgnoringModifiers] when UCKeyTranslate() can not translate the input key
2020-09-01 20:29:53 +02:00
Donny Lawrence
5d6ff0ecc8
cocoadisplay: Fix handling of shift modifier
...
Closes #967
Fixes #959
2020-07-25 10:27:18 +02:00
rdb
2b632c8e20
cocoa: use resolved filename to load cursor image (thanks treamous)
2020-02-01 09:49:35 +01:00
rdb
b573cc3587
cocoa: fix compilation issues with new NSCursor hotspot code
...
See #849
2020-01-22 09:47:58 +01:00
Donny Lawrence
4f4b14dd2b
cocoadisplay: Use hotspot read from .cur files
...
Previously, the cursor's hotspot defaulted to (0,0). Fixes #845 .
Closes #849
2020-01-21 14:53:19 +01:00
LD
a56b85dbed
cocoadisplay: Fix switch to fullscreen on macOS 10.9 using current display resolution
2020-01-07 14:09:05 +01:00
LD
f68604a3f5
cocoadisplay: Fix regression introduced by 45461e667a
...
Closes #829
2020-01-05 23:01:49 +01:00
LD
45461e667a
cocoadisplay: use same scaling factor as the current view when switching to fullscreen on MacOS 10.15+
...
Fixes #794
2019-12-29 22:24:56 +01:00
LD
f72c72b36a
MacOS: Force disable application HiDPI support on NSView, fixes #794
2019-11-29 10:07:48 +01:00
rdb
5530074945
cocoa: fix crash when typing with RIME as input method
...
Fixes #620
2019-04-14 22:10:32 +02:00
rdb
4e92b708ff
Merge branch 'macosstuckwindowfix' of github.com:treamology/panda3d into release/1.10.x
...
Closes #536
Fixes #534
2019-03-04 12:23:53 +01:00
tc
96bb90b5e9
cocoa: guarantee 24bit depth when Config.prc has `depth-bits` set to `1`
...
Checks if the value of Config.prc for `depth-bits` is `1` and sets it
manually to 24.
This prevents getting a 16 bit depth buffer on macos
Intended to address #501
Closes #551
2019-02-07 22:26:54 +01:00
Donny Lawrence
2c513ba1c4
Move handle_close_event() call to windowShouldClose, which only triggers when the close button is pressed by the user.
2019-01-13 19:07:43 -05:00
Donny Lawrence
d51db6e39e
Fix an instance where a macOS window will stick around when trying to have it destroyed.
...
This commit also removes an extraneous call to [_window setReleasedWhenClosed], which is already set in cocoaPandaWindow's init method.
2019-01-13 11:54:56 -05:00
Donny Lawrence
f29643dd14
cocoa: Prevent a deadlock when using SIMPLE_THREADS on macOS
...
Closes #491
Fixes #490
2018-12-26 22:47:14 +01:00
Donny Lawrence
0fa0ad673f
cocoa: use CVDisplayLink on macOS to sync video to display(s)
...
Closes #487
Fixes #486
2018-12-24 13:36:13 +01:00
Donny Lawrence
8a0f438156
Get rid of the flickering that occurs on Mojave as a result of changes in the way AppKit handles view layers.
2018-12-03 23:05:05 -05:00
rdb
cc08bacec5
cocoa: fix compilation error
2018-11-30 17:13:35 +01:00
rdb
26fcf131c9
Merge branch 'master' into input-overhaul
2018-11-25 17:10:31 +01:00
rdb
f629a5df1a
cocoa: don't enable sRGB unless it was explicitly requested
...
Fixes #443
2018-11-09 18:25:07 +01:00
rdb
357b6d3093
Merge branch 'master' into input-overhaul
2018-10-29 23:40:46 +01:00
rdb
ed96a52703
cocoa: cautiously enable sRGB framebuffers on macOS
...
[skip ci]
2018-10-28 20:41:14 +01:00
Sam Edwards
2d80d6d063
general: Add missing includes and remove deprecated type
...
Credit for missing includes to @treamology in Git commit
16cfac4829
CGTableCount removed; modern macOS seems to call this
a uint32_t instead. I can find no reference to CGTableCount
in any documentation, and the (very old) source code I dig
up just typedefs it anyway.
2018-10-14 15:50:06 -06:00
rdb
e30b597926
Merge branch 'master' into input-overhaul
2018-09-16 12:28:22 +02:00
Sam Edwards
4695557a5d
general: Don't require BUILDING_* for static builds
2018-08-31 23:54:32 -06:00
rdb
234fd675b1
Merge branch 'master' into input-overhaul
2018-06-23 23:24:09 +02:00
Sam Edwards
b2bfb31114
general: Remove `using std::*` from headers
...
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.
Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards
a971bc1dfc
general: Break apart BUILDING_PANDAGL
2018-06-12 16:15:45 -06:00
rdb
ba2de46beb
Merge branch 'master' into input-overhaul
2018-06-08 15:23:47 +02:00
Sam Edwards
7790f8429d
general: Fully qualify header references into the std namespace
...
Closes #341
2018-06-07 10:35:12 +02:00
rdb
57602d750f
cocoadisplay: don't crash if window/buffer fails to open
2018-06-03 22:35:37 +02:00
rdb
21d8c29645
More warning fixes
2018-06-03 06:45:35 -04:00
rdb
b8af5bf64f
cocoa: fix compile error caused by faulty merge
...
[skip ci]
2018-03-29 14:44:10 +02:00
Donny Lawrence
7830aab21d
cocoa: Fix unresponsive menubar, add default item for application menu.
...
Closes #259
2018-03-29 14:30:16 +02:00
rdb
7062da944a
cocoa: fix ability to type AltGr characters and dead keys
...
It would seem that interpretKeyEvents/insertText would be the right way to do this, but while that does handle AltGr keys correctly, it does not handle dead keys at all. This approach seems to do the right things.
2018-03-29 14:22:59 +02:00
Sam Edwards
9dd37e9dbc
general: Add guards to ensure proper BUILDING_ macros defined
...
This is designed to sanity-check the buildsystem, ensuring that the
expected BUILDING_ macros are defined at the expected time. It
also helps catch cases where the wrong BUILDING_/EXPCL_ macros
are used.
2018-03-25 13:17:52 -06:00
rdb
94385e865f
Merge remote-tracking branch 'origin/master' into input-overhaul
2018-01-28 14:31:45 +01:00
rdb
fe0c182830
cocoa: fix app launching regression on macOS
...
The regression was introduced by ef7f856c46
Fixes #227
2018-01-17 19:46:30 +01:00
rdb
962e6e31e4
Merge branch 'master' into input-overhaul
2018-01-03 14:46:13 +01:00
rdb
ef9803b25e
Changes to support compiling input-overhaul branch on macOS
2017-12-22 14:59:52 +01:00
rdb
ef7f856c46
cocoa: support windowless offscreen rendering on macOS
...
Fixes : #183
2017-12-20 14:27:08 +01:00
rdb
061e0c4862
cocoa: allow getting a GL 3.2+ context on macOS 10.7+ using gl-version
2017-12-19 23:38:45 +01:00
rdb
8b3ad7348e
cocoa: fix broken mouse events in fullscreen on macOS (LP 1500026)
2017-07-10 19:53:53 +02:00
rdb
ab5b5e7e74
Merge branch 'release/1.9.x'
2016-12-25 22:47:22 +01:00
rdb
59c3aa3ef6
cocoa: don't crash if display server doesn't give us display modes
2016-12-25 09:59:29 -05:00
rdb
365e1d53ef
Merge branch 'release/1.9.x'
...
Conflicts:
makepanda/makepandacore.py
panda/src/cocoadisplay/cocoaGraphicsStateGuardian.mm
2016-06-27 01:18:02 +02:00
rdb
7dfd907e17
Try to report red/green/blue bits for Cocoa windows
2016-06-27 00:38:14 +02:00
rdb
4283a63a7d
Merge branch 'release/1.9.x'
2016-06-11 01:29:14 +02:00
rdb
12873c0d7e
Fix wxPython and tkinter issues on Mac OS X
2016-06-10 02:02:36 +02:00
tobspr
0fcfb8e372
New file headers, new comment style
2016-02-17 17:47:48 +01:00