Commit Graph

1684 Commits

Author SHA1 Message Date
Noel Cower
1f8ef64b30 Fix cursor hiding on OS X.
There's probably still an oddity in here to do with having more than one
window's cursor disabled, but I don't think there's any sane fix for
that.

Anyway, the issue with cursors is actually pretty simple and mostly
down to a misreading of what I thought disableCursorRects did. Calling
it will stop the window from doing anything based on cursor rects, but
it will not restore cursor state to whatever it was prior to the window
using cursor rects. So, it's just letting you do your thing for as long
as they're disabled.

The fix for this is to simply not add a cursor rect when the window's
cursor is hidden. So, I moved the cursorHidden flag from the library
globals for OS X into the window flags, removed use of NSCursor show
and hide because that's just trouble waiting to happen, and now the
window only adds a cursor rect to hide the cursor if the cursor is
supposed to be hidden.

Because the cursor is moved into the window for when the cursor is
disabled, it functions the same as hiding and showing the cursor. When
the cursor is simply hidden, it also functions as expected.
2013-06-12 17:01:53 -07:00
Camilla Berglund
5da6a903f9 Fixed MinGW warning. 2013-06-12 23:08:01 +02:00
Camilla Berglund
964a5ba952 Sorted Doxygen pages. 2013-06-12 20:58:13 +02:00
Camilla Berglund
c347b07b20 Updated bug tag. 2013-06-12 20:58:13 +02:00
Camilla Berglund
3df0b4478b Fixed VC++ warnings. 2013-06-12 20:37:04 +02:00
Camilla Berglund
30b6e0c868 Removed deprecated Doxygen option. 2013-06-12 20:35:50 +02:00
Camilla Berglund
421810325a Win32 fixes. 2013-06-12 19:58:30 +02:00
Camilla Berglund
35c386b7bb Ignore CRTCs with no outputs. 2013-06-12 19:40:55 +02:00
Camilla Berglund
c449ef2e12 Moved client build docs to Doxygen. 2013-06-12 16:06:45 +02:00
Camilla Berglund
e6bfbba429 Clarified sticky keys docs. 2013-06-12 16:06:21 +02:00
Camilla Berglund
3274dc9a61 Added internal docs. 2013-06-12 15:03:56 +02:00
Camilla Berglund
52354bf382 Added missing ramp array allocation. 2013-06-09 18:18:09 +02:00
Camilla Berglund
68b7ea86d2 Monitor enumeration fixes. 2013-06-09 13:10:21 +02:00
Camilla Berglund
c8166e58d3 Formatting. 2013-06-09 12:50:48 +02:00
Camilla Berglund
8c069f3753 Fixed use of wrong variable. 2013-06-09 12:18:07 +02:00
Camilla Berglund
296b0a39a0 Added zeroing of DEVMODE. 2013-06-09 11:45:51 +02:00
Camilla Berglund
742a577230 Removed C99-ism. 2013-06-09 11:45:26 +02:00
Camilla Berglund
770daa19c8 Avoid mode re-enumeration, take two. 2013-06-07 15:11:26 +02:00
Camilla Berglund
f4387139e0 Avoid mode re-enumeration. 2013-06-07 13:57:17 +02:00
Camilla Berglund
bfb7b053c2 Added missing news items. 2013-06-06 17:29:06 +02:00
Camilla Berglund
8bf3698f70 Merge pull request #35 from mewpull/master
Corrected parameter names in scroll callback documentation.
2013-06-06 04:59:09 -07:00
mewmew
cf2d260b2a Update parameter names in documentation of scroll callback. 2013-06-06 19:49:23 +02:00
Camilla Berglund
f6a9338b06 Hooked up monitor callback on OS X. 2013-06-06 01:28:01 +02:00
Camilla Berglund
ee91dea741 Added key input to quick tutorial. 2013-06-05 23:46:16 +02:00
Camilla Berglund
11615fcaf2 Added scancode to key callback. 2013-06-05 23:46:09 +02:00
Camilla Berglund
362bf5de64 Documentation work. 2013-06-05 23:01:50 +02:00
Camilla Berglund
fbfbf3ce07 Documentation work. 2013-06-05 21:26:40 +02:00
Camilla Berglund
5fd409b679 Documentation work. 2013-06-05 19:42:59 +02:00
Camilla Berglund
4c69535d72 Removed reconfiguration callback.
The Core Graphics callback is called before the corresponding NSScreen
object for a newly connected monitor is created, thus making monitor
enumeration fail.
2013-06-05 16:31:05 +02:00
Camilla Berglund
44e8401f7b Clarified default profile token name. 2013-06-05 16:15:20 +02:00
Camilla Berglund
c3bb5c9e7b Documented not freeing returned values. 2013-06-05 16:04:04 +02:00
Camilla Berglund
128e5b4a73 Removed deprecated key aliases. 2013-06-05 15:39:19 +02:00
Camilla Berglund
11b7d17ea0 Added filtering of duplicate key releases. 2013-06-05 15:26:52 +02:00
Camilla Berglund
edebf3b560 Clarified comment. 2013-06-05 15:17:16 +02:00
Camilla Berglund
36de6d3ce3 Fixed AltGr on Windows. 2013-06-05 13:11:00 +02:00
Camilla Berglund
180a4ee640 Fixed constness of joystick data. 2013-06-04 18:20:38 +02:00
Camilla Berglund
179d90956a Added high-DPI to news page. 2013-06-04 17:50:41 +02:00
Camilla Berglund
f9d1a37621 Fixed unguarded calls to monitor callback. 2013-06-04 17:46:06 +02:00
Camilla Berglund
3498163da1 Separated window and framebuffer sizes. 2013-06-04 01:51:54 +02:00
Camilla Berglund
89588a4508 Cleanup. 2013-06-04 01:51:40 +02:00
Camilla Berglund
2591b6c8c8 Fixed use of legacy token names. 2013-06-03 14:01:25 +02:00
Camilla Berglund
2b1192a3dd Formatting. 2013-05-31 00:09:37 +02:00
Camilla Berglund
80076e7b67 Fixed function visibility. 2013-05-31 00:02:03 +02:00
Camilla Berglund
2cd34386bc Added back refresh rate window hint. 2013-05-30 20:42:59 +02:00
Camilla Berglund
f5dc6e4007 Added random seed init. 2013-05-30 20:41:39 +02:00
Camilla Berglund
53b39a61b9 Token value cleanup. 2013-05-30 18:55:45 +02:00
Camilla Berglund
731812cfc1 Added refresh rate to GLFWvidmode. 2013-05-30 15:52:42 +02:00
Camilla Berglund
8a683c02aa Hooked up Quartz reconfiguration callback. 2013-05-30 14:14:30 +02:00
Camilla Berglund
95835af0ac Quartz lies. 2013-05-30 13:53:25 +02:00
Camilla Berglund
525b4151f0 Fixed invalid pointer use. 2013-05-29 22:35:58 +02:00