diff options
| author | YAMAMOTO Mitsuharu | 2007-08-09 09:36:42 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-08-09 09:36:42 +0000 |
| commit | f94264798798821b09ddf5ace25078ee319a5cd8 (patch) | |
| tree | d3dde5c6f9e39a533f2f74cc859e1577549a8b8b /src | |
| parent | 7b7d07bbfa32c89bc1fcb3a829940921106f575a (diff) | |
| download | emacs-f94264798798821b09ddf5ace25078ee319a5cd8.tar.gz emacs-f94264798798821b09ddf5ace25078ee319a5cd8.zip | |
(mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
for window repositioning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/macterm.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e07c4696c9e..d2121578235 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -13,6 +13,8 @@ | |||
| 13 | (XTread_socket): Call ActivateControl/DeactivateControl here. | 13 | (XTread_socket): Call ActivateControl/DeactivateControl here. |
| 14 | (XTread_socket) [TARGET_API_MAC_CARBON]: | 14 | (XTread_socket) [TARGET_API_MAC_CARBON]: |
| 15 | Check mac_pass_command_to_system and mac_pass_control_to_system here. | 15 | Check mac_pass_command_to_system and mac_pass_control_to_system here. |
| 16 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround | ||
| 17 | for window repositioning. | ||
| 16 | 18 | ||
| 17 | 2007-08-07 Chong Yidong <cyd@stupidchicken.com> | 19 | 2007-08-07 Chong Yidong <cyd@stupidchicken.com> |
| 18 | 20 | ||
diff --git a/src/macterm.c b/src/macterm.c index d1d9205d5dc..7d6934b806b 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -10719,7 +10719,10 @@ mac_handle_window_event (next_handler, event, data) | |||
| 10719 | /* This is a workaround. RepositionWindow fails to put | 10719 | /* This is a workaround. RepositionWindow fails to put |
| 10720 | a window at the cascading position when its parent | 10720 | a window at the cascading position when its parent |
| 10721 | window has a Carbon HIToolbar. */ | 10721 | window has a Carbon HIToolbar. */ |
| 10722 | if (f->top_pos == sf->top_pos && f->left_pos == sf->left_pos) | 10722 | if ((f->left_pos == sf->left_pos |
| 10723 | && f->top_pos == sf->top_pos) | ||
| 10724 | || (f->left_pos == sf->left_pos + 10 * 2 | ||
| 10725 | && f->top_pos == sf->top_pos + 32 * 2)) | ||
| 10723 | MoveWindowStructure (wp, f->left_pos + 10, f->top_pos + 32); | 10726 | MoveWindowStructure (wp, f->left_pos + 10, f->top_pos + 32); |
| 10724 | #endif | 10727 | #endif |
| 10725 | } | 10728 | } |