Alexander Ljungberg
6327d8c92e
Fixed: transient popovers broke modal windows.
...
Without this fix, opening a transient popover would allow windows other than the modal window (or its children) to be interacted with.
In general, setCallback:forNextEventMatchingMask: did not work right if more than 1 callback was installed.
In the popover case the modal window would install its "any event" callback to control the event loop, but then the popover would add a second callback for mouse down to detect clicks outside of it. This would disrupt the modal event handling and allow mouse clicks (and presumably other events) to escape the modal event catcher.
This fix makes multiple nextEvent callbacks work as one would expect, with later ones taking priority over older ones and reinserted callbacks remaining at a stable priority.
This allows the modal window callback to be at the "bottom" of the handler stack and the popover event handler to be "on top" of that, and to remain that way. In theory more layers of event handling could be layered on top such as 2 simultaneous popovers.
This fix also fixes the dequeue argument in forNextEvent callbacks.
2013-03-11 13:14:18 +00:00
..
2013-02-26 11:56:18 +01:00
2013-02-25 17:02:36 +00:00
2013-02-26 16:27:54 +00:00
2013-03-01 10:50:00 +01:00
2013-02-25 18:27:44 +00:00
2013-03-08 13:47:46 +01:00
2013-03-10 22:48:26 +00:00
2013-02-25 18:27:44 +00:00
2013-01-23 15:48:56 +07:00
2013-02-26 11:56:18 +01:00
2013-02-26 18:55:22 +00:00
2013-02-25 17:02:36 +00:00
2010-11-01 11:10:01 -07:00
2013-01-27 10:32:23 +08:00
2013-03-10 22:48:26 +00:00
2013-01-24 19:18:39 +08:00
2013-01-23 15:48:55 +07:00
2012-12-20 14:22:09 +01:00
2013-01-23 15:48:55 +07:00
2012-12-20 14:22:09 +01:00
2013-01-23 15:48:55 +07:00
2012-12-20 14:22:09 +01:00
2013-01-23 10:45:42 -08:00
2012-07-13 01:28:38 +01:00
2013-01-18 14:24:37 +01:00
2013-02-25 18:27:44 +00:00
2013-01-27 10:32:23 +08:00
2013-03-11 13:14:18 +00:00
2013-02-15 12:21:13 -05:00
2013-02-23 13:53:20 -05:00
2013-02-25 18:27:44 +00:00
2013-02-25 17:02:36 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-15 12:21:13 -05:00
2013-02-24 21:26:02 +00:00
2013-03-10 13:08:34 +00:00
2013-02-08 11:26:56 +00:00
2013-02-22 21:58:12 -05:00
2013-01-30 22:35:21 +08:00
2013-01-19 16:51:56 +07:00
2013-01-23 15:48:55 +07:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-15 21:17:39 -05:00
2013-03-10 13:08:34 +00:00
2013-01-18 14:24:37 +01:00
2013-01-08 18:07:15 +00:00
2013-02-14 16:35:30 -05:00
2013-02-20 03:00:20 -05:00
2013-02-25 17:02:36 +00:00
2013-02-25 17:02:36 +00:00
2013-01-23 15:48:55 +07:00
2013-02-25 17:02:36 +00:00
2013-01-24 19:18:39 +08:00
2013-01-24 19:18:39 +08:00
2010-12-09 13:00:52 -08:00
2013-02-25 17:02:36 +00:00
2013-01-19 16:51:56 +07:00
2013-03-06 07:56:50 -05:00
2013-02-12 16:41:54 +00:00
2012-10-15 01:00:29 +01:00
2013-02-23 13:53:20 -05:00
2013-02-23 13:53:20 -05:00
2013-02-22 22:11:42 +01:00
2013-01-24 19:18:39 +08:00
2013-03-09 14:34:58 -05:00
2013-02-25 18:27:44 +00:00
2013-02-25 21:22:45 -05:00
2013-01-20 07:24:00 +07:00
2013-02-26 11:56:18 +01:00
2013-02-26 18:55:22 +00:00
2013-02-25 17:02:36 +00:00
2013-01-28 09:32:37 +08:00
2013-02-12 11:06:39 -08:00
2013-02-25 18:27:44 +00:00
2013-02-23 00:01:19 -05:00
2013-01-23 15:48:55 +07:00
2011-03-25 22:52:57 -04:00
2011-04-03 17:45:53 -04:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2011-03-25 22:52:57 -04:00
2013-03-08 08:54:00 -05:00
2013-02-06 16:36:49 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-01-23 15:48:55 +07:00
2013-01-23 15:48:55 +07:00
2013-03-06 07:49:18 -05:00
2013-02-25 18:27:44 +00:00
2013-01-23 15:48:56 +07:00
2013-02-26 11:56:18 +01:00
2013-02-26 11:56:18 +01:00
2013-03-04 20:03:20 +01:00
2013-02-24 23:08:44 +00:00
2013-01-18 14:24:37 +01:00
2010-10-05 15:54:25 -07:00
2013-03-10 13:08:34 +00:00
2013-02-25 18:27:44 +00:00
2013-01-10 11:27:52 -08:00
2013-03-10 13:08:34 +00:00
2013-02-25 18:27:44 +00:00
2012-12-20 14:22:09 +01:00
2013-01-11 00:48:18 +00:00
2013-01-24 19:18:39 +08:00
2013-03-08 12:27:19 -05:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-27 09:07:21 -05:00
2013-03-06 10:19:26 -05:00
2012-02-24 19:44:13 +00:00
2009-11-02 15:59:42 -08:00
2013-01-30 12:46:27 +08:00