diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c index 344fb921a5b..36d164a45c8 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -831,9 +831,19 @@ x_set_frame_parameters (f, alist) | |||
| 831 | 831 | ||
| 832 | /* Don't die if just one of these was set. */ | 832 | /* Don't die if just one of these was set. */ |
| 833 | if (EQ (width, Qunbound)) | 833 | if (EQ (width, Qunbound)) |
| 834 | XSETINT (width, FRAME_WIDTH (f)); | 834 | { |
| 835 | if (FRAME_NEW_WIDTH (f)) | ||
| 836 | XSETINT (width, FRAME_NEW_WIDTH (f)); | ||
| 837 | else | ||
| 838 | XSETINT (width, FRAME_WIDTH (f)); | ||
| 839 | } | ||
| 835 | if (EQ (height, Qunbound)) | 840 | if (EQ (height, Qunbound)) |
| 836 | XSETINT (height, FRAME_HEIGHT (f)); | 841 | { |
| 842 | if (FRAME_NEW_HEIGHT (f)) | ||
| 843 | XSETINT (height, FRAME_NEW_HEIGHT (f)); | ||
| 844 | else | ||
| 845 | XSETINT (height, FRAME_HEIGHT (f)); | ||
| 846 | } | ||
| 837 | 847 | ||
| 838 | /* Don't set these parameters unless they've been explicitly | 848 | /* Don't set these parameters unless they've been explicitly |
| 839 | specified. The window might be mapped or resized while we're in | 849 | specified. The window might be mapped or resized while we're in |