diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/w32term.c | 14 | ||||
| -rw-r--r-- | src/xterm.c | 9 |
3 files changed, 10 insertions, 19 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e900cfb1bb1..4223573a6ff 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2013-09-17 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2013-09-17 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * w32term.c (w32_read_socket): Avoid temporary | ||
| 4 | variables in a call to x_real_positions. | ||
| 5 | * xterm.c (handle_one_xevent): Likewise. | ||
| 6 | |||
| 7 | 2013-09-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8 | |||
| 3 | * frame.h (x_set_bitmap_icon) [!HAVE_NS]: New function. | 9 | * frame.h (x_set_bitmap_icon) [!HAVE_NS]: New function. |
| 4 | (x_icon_type): Remove prototype. | 10 | (x_icon_type): Remove prototype. |
| 5 | (x_bitmap_icon) [!HAVE_NS]: Declare as such. | 11 | (x_bitmap_icon) [!HAVE_NS]: Declare as such. |
diff --git a/src/w32term.c b/src/w32term.c index 59fdf130592..331a86ef7d7 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -4687,13 +4687,7 @@ w32_read_socket (struct terminal *terminal, | |||
| 4687 | f = x_window_to_frame (dpyinfo, msg.msg.hwnd); | 4687 | f = x_window_to_frame (dpyinfo, msg.msg.hwnd); |
| 4688 | 4688 | ||
| 4689 | if (f && !FRAME_ICONIFIED_P (f)) | 4689 | if (f && !FRAME_ICONIFIED_P (f)) |
| 4690 | { | 4690 | x_real_positions (f, &f->left_pos, &f->top_pos); |
| 4691 | int x, y; | ||
| 4692 | |||
| 4693 | x_real_positions (f, &x, &y); | ||
| 4694 | f->left_pos = x; | ||
| 4695 | f->top_pos = y; | ||
| 4696 | } | ||
| 4697 | 4691 | ||
| 4698 | check_visibility = 1; | 4692 | check_visibility = 1; |
| 4699 | break; | 4693 | break; |
| @@ -4756,16 +4750,12 @@ w32_read_socket (struct terminal *terminal, | |||
| 4756 | 4750 | ||
| 4757 | if (iconified) | 4751 | if (iconified) |
| 4758 | { | 4752 | { |
| 4759 | int x, y; | ||
| 4760 | |||
| 4761 | /* Reset top and left positions of the Window | 4753 | /* Reset top and left positions of the Window |
| 4762 | here since Windows sends a WM_MOVE message | 4754 | here since Windows sends a WM_MOVE message |
| 4763 | BEFORE telling us the Window is minimized | 4755 | BEFORE telling us the Window is minimized |
| 4764 | when the Window is iconified, with 3000,3000 | 4756 | when the Window is iconified, with 3000,3000 |
| 4765 | as the co-ords. */ | 4757 | as the co-ords. */ |
| 4766 | x_real_positions (f, &x, &y); | 4758 | x_real_positions (f, &f->left_pos, &f->top_pos); |
| 4767 | f->left_pos = x; | ||
| 4768 | f->top_pos = y; | ||
| 4769 | 4759 | ||
| 4770 | inev.kind = DEICONIFY_EVENT; | 4760 | inev.kind = DEICONIFY_EVENT; |
| 4771 | XSETFRAME (inev.frame_or_window, f); | 4761 | XSETFRAME (inev.frame_or_window, f); |
diff --git a/src/xterm.c b/src/xterm.c index fadcdbfea98..08a360fd52c 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6129,11 +6129,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 6129 | f = x_top_window_to_frame (dpyinfo, event->xreparent.window); | 6129 | f = x_top_window_to_frame (dpyinfo, event->xreparent.window); |
| 6130 | if (f) | 6130 | if (f) |
| 6131 | { | 6131 | { |
| 6132 | int x, y; | ||
| 6133 | f->output_data.x->parent_desc = event->xreparent.parent; | 6132 | f->output_data.x->parent_desc = event->xreparent.parent; |
| 6134 | x_real_positions (f, &x, &y); | 6133 | x_real_positions (f, &f->left_pos, &f->top_pos); |
| 6135 | f->left_pos = x; | ||
| 6136 | f->top_pos = y; | ||
| 6137 | 6134 | ||
| 6138 | /* Perhaps reparented due to a WM restart. Reset this. */ | 6135 | /* Perhaps reparented due to a WM restart. Reset this. */ |
| 6139 | FRAME_DISPLAY_INFO (f)->wm_type = X_WMTYPE_UNKNOWN; | 6136 | FRAME_DISPLAY_INFO (f)->wm_type = X_WMTYPE_UNKNOWN; |
| @@ -6827,9 +6824,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 6827 | if (FRAME_GTK_OUTER_WIDGET (f) | 6824 | if (FRAME_GTK_OUTER_WIDGET (f) |
| 6828 | && gtk_widget_get_mapped (FRAME_GTK_OUTER_WIDGET (f))) | 6825 | && gtk_widget_get_mapped (FRAME_GTK_OUTER_WIDGET (f))) |
| 6829 | #endif | 6826 | #endif |
| 6830 | { | 6827 | x_real_positions (f, &f->left_pos, &f->top_pos); |
| 6831 | x_real_positions (f, &f->left_pos, &f->top_pos); | ||
| 6832 | } | ||
| 6833 | 6828 | ||
| 6834 | #ifdef HAVE_X_I18N | 6829 | #ifdef HAVE_X_I18N |
| 6835 | if (FRAME_XIC (f) && (FRAME_XIC_STYLE (f) & XIMStatusArea)) | 6830 | if (FRAME_XIC (f) && (FRAME_XIC_STYLE (f) & XIMStatusArea)) |