Commit Graph

62 Commits

Author SHA1 Message Date
Robby Findler
5301646baf fix a bug in recently added display-changed method 2013-01-21 13:47:43 -06:00
Matthew Flatt
55f98a15d4 racket/gui gtk: make `on-demand' for menus work better
There appears to be no way to make `on-demand' work right for the
Unity window manager's global menu bar, since there's no notificiation
when the menu bar is clicked. We approximate the correct behavior
by calling `on-demand' when a containing frame loses the keyboard
focus, which might be because the menu bar was clicked; that may be
too late (because the menu has already been shown), but it should
work most of the time.

Closes PR 13347.

Relevant to PR 13395, but DrRacket will have to change to work
around the remaining limitations of `on-demand'.
2013-01-01 15:55:36 -07:00
Matthew Flatt
07d5a9e385 fix `expt' on small negative number and large positive odd
The pow() function apparently gets it wrong on some platforms.

Closes PR 13391
2013-01-01 12:33:59 -07:00
Robby Findler
3f9e60a908 add display-changed method 2012-12-21 19:22:59 -06:00
Robby Findler
8d4dac318c hold onto all frames weakly 2012-12-21 15:43:12 -06:00
Matthew Flatt
7b04571fac racket/gui: add `get-current-mouse-state' 2012-11-07 14:37:39 -07:00
Matthew Flatt
068240e9fe racket/gui: fix problems with control labels and client/global positions
Closes PR 13232
2012-11-04 08:47:50 -07:00
Matthew Flatt
ba6e383963 racket/gui gtk: fix on-subwindow-... handling
Handling was broken by changes to fix enter and
leave events (in commit a5d7812732)

Merge to v5.3.1
2012-10-27 21:34:08 -06:00
Matthew Flatt
a5d7812732 racket/gui: skip some redundant 'enter & 'leave events 2012-10-02 07:26:25 -06:00
Matthew Flatt
29c7c28ba5 gtk: fix problems with on-focus' and on-activate' 2011-10-18 06:35:50 -06:00
Matthew Flatt
2ecd32b86e racket/gui: fix excessive on-size' and on-move' callbacks
Especially for gtk, where a client-resize notification was
getting mixed up with a frame-configure notification. On all
platforms, `on-size' and `on-move' for a frame% were queued
at too high a priority.
2011-09-10 14:37:13 -06:00
Matthew Flatt
ce4705cedc get-diplay-size' and get-display-left-top-inset' use #f for failure
Since the number of monitors can change at any time, reliable
use of these functions requires handling failure in some way.
Handling #f results is easier (and less likely to mask other
problems) than catching exceptions.
2011-09-09 17:03:17 -06:00
Matthew Flatt
456e9befd3 fix refresh' on window<%>'s other than `canvas%'s 2011-08-12 17:03:28 -06:00
Matthew Flatt
cdf2085703 gtk: fix frame position tracking
Closes PR 11931
2011-08-04 06:45:18 -06:00
Sam Tobin-Hochstadt
f67d46cd2f Pass the correct number of arguments to `display-size'. Closes PR 12062. 2011-07-19 17:04:51 -04:00
Matthew Flatt
23a2a075ea add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow
2011-07-18 20:15:15 -06:00
Matthew Flatt
b096fb7503 gtk: `get-display-size' reports main monitor only
and the same for `get-display-left-top-inset'
2011-07-18 19:59:05 -06:00
Matthew Flatt
b4e3e065ac gtk: fix menu-bar height handling to work right with Ubuntu's patch to support out-of-frame menu bars in Unity 2011-06-20 14:46:14 -06:00
Matthew Flatt
f4a881f0e3 fix `set-icon' in frame% to make mask argument optional
Merge to 5.1
2011-02-09 09:01:34 -07:00
David Van Horn
c9519fd113 Fixed various spelling errors. 2011-02-03 17:42:33 -05:00
Matthew Flatt
45999143a4 gtk: fix float frames to not appear in WM's window list 2011-01-27 12:25:53 -07:00
Matthew Flatt
e331f1bce2 gtk: fix `get-focus-window' in frame%
Closes PR 11654
2011-01-21 09:07:46 -07:00
Matthew Flatt
eaa82cc84d gtk: fix floating windows 2011-01-08 11:55:31 -07:00
Matthew Flatt
ae5093a134 more consistent on-size' and on-move' 2011-01-05 10:00:07 -07:00
Matthew Flatt
68e477fd52 implement get-focus-window' and get-edit-target-window' in back end to avoid relying on `on-focus' callback handling 2010-12-28 05:25:26 -07:00
Matthew Flatt
7da127227a gtk & cocoa: frame iconize repairs
In the "windowing.rktl" tests, for Gtk there are still race conditions
 between the program and the window manager. But for the first
 time ever, all platforms can pass the "windowing.rktl" test.
2010-11-26 08:33:59 -07:00
Matthew Flatt
168a2c1591 use #x3FFFFFF instead of #x3FFFFFFF for max size of an unbounded frame
because sawfish is unhappy with #x3FFFFFFF
2010-11-09 16:59:01 -07:00
Matthew Flatt
d7f1d12ea1 clean up 2010-11-05 15:54:49 -06:00
Matthew Flatt
4f2e59e7a6 some fixes prompted by the test suite 2010-11-05 15:54:48 -06:00
Matthew Flatt
c4ab7733c1 gtk: on-activate and single-instance fixes 2010-11-05 15:54:42 -06:00
Matthew Flatt
16b34c236a gtk: misc fixes 2010-11-05 15:54:41 -06:00
Matthew Flatt
27f18efa88 gtk: make gl support optional and also clean up some unneeded unimplementeds 2010-11-05 15:54:41 -06:00
Matthew Flatt
e32475fbbf fix frame size enforcement and gtk/cocoa positioning 2010-11-05 15:54:35 -06:00
Matthew Flatt
1dd3c8accb gtk: try fullscreen 2010-11-05 15:54:32 -06:00
Matthew Flatt
7e8a08cdd8 cocoa toolbar button and some unimplemented clean-up 2010-11-05 15:54:30 -06:00
Matthew Flatt
ece405106b gtk frame% set-icon 2010-11-05 15:54:30 -06:00
Matthew Flatt
26036ac55e gtk default frame icon 2010-11-05 15:54:30 -06:00
Matthew Flatt
f40e7edae8 unify cocoa & gtk canvas-painting implementation 2010-11-05 15:54:27 -06:00
Matthew Flatt
af499e3039 fix focus and frame-modified problems 2010-11-05 15:54:25 -06:00
Matthew Flatt
f21920c8e9 show gtk menu shortcuts 2010-11-05 15:54:17 -06:00
Matthew Flatt
b3f1cc4b41 fix problem related to cursor tracking 2010-11-05 15:54:17 -06:00
Matthew Flatt
436eb512f8 gtk cursors 2010-11-05 15:54:16 -06:00
Matthew Flatt
40c1c2ffef cocoa cursors 2010-11-05 15:54:16 -06:00
Matthew Flatt
0114b7a4a5 misc repairs 2010-11-05 15:54:15 -06:00
Matthew Flatt
7edbdd8a5a streamline gtk widget repositioning 2010-11-05 15:54:15 -06:00
Matthew Flatt
647ce060ab another try at fixing gtk dialog placement 2010-11-05 15:54:15 -06:00
Matthew Flatt
c704905833 more memory management 2010-11-05 15:54:15 -06:00
Matthew Flatt
0a9bdc11ad make platform-to-wx links weak 2010-11-05 15:54:14 -06:00
Matthew Flatt
fdf38124a5 have container retain shown children 2010-11-05 15:54:14 -06:00
Matthew Flatt
e433a8a2e6 fix problem with size initialization of a frame with a menu bar 2010-11-05 15:54:13 -06:00