diff options
| author | Jan Djärv | 2011-12-03 20:15:20 +0100 |
|---|---|---|
| committer | Jan Djärv | 2011-12-03 20:15:20 +0100 |
| commit | c052ead41f5a53da9cc32e7697005fac3506a858 (patch) | |
| tree | 77d08775bc63f3abc493bde421d90d0abc01fc2a /src/widget.c | |
| parent | cac8708fdec06853fcdaefe4651ebb71c61eebc7 (diff) | |
| download | emacs-c052ead41f5a53da9cc32e7697005fac3506a858.tar.gz emacs-c052ead41f5a53da9cc32e7697005fac3506a858.zip | |
* widget.c (update_wm_hints): Return if wmshell is null.
(widget_update_wm_size_hints): New function.
* widget.h (widget_update_wm_size_hints): Declare.
* xterm.c (x_wm_set_size_hint): If USE_X_TOOLKIT, call
widget_update_wm_size_hints.
Fixes: debbugs:10104
Diffstat (limited to 'src/widget.c')
| -rw-r--r-- | src/widget.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/widget.c b/src/widget.c index 181811b8369..96bfd4787e9 100644 --- a/src/widget.c +++ b/src/widget.c | |||
| @@ -476,6 +476,9 @@ update_wm_hints (EmacsFrame ew) | |||
| 476 | int base_height; | 476 | int base_height; |
| 477 | int min_rows = 0, min_cols = 0; | 477 | int min_rows = 0, min_cols = 0; |
| 478 | 478 | ||
| 479 | /* This happens when the frame is just created. */ | ||
| 480 | if (! wmshell) return; | ||
| 481 | |||
| 479 | #if 0 | 482 | #if 0 |
| 480 | check_frame_size (ew->emacs_frame.frame, &min_rows, &min_cols); | 483 | check_frame_size (ew->emacs_frame.frame, &min_rows, &min_cols); |
| 481 | #endif | 484 | #endif |
| @@ -506,6 +509,14 @@ update_wm_hints (EmacsFrame ew) | |||
| 506 | NULL); | 509 | NULL); |
| 507 | } | 510 | } |
| 508 | 511 | ||
| 512 | void | ||
| 513 | widget_update_wm_size_hints (Widget widget) | ||
| 514 | { | ||
| 515 | EmacsFrame ew = (EmacsFrame)widget; | ||
| 516 | update_wm_hints (ew); | ||
| 517 | } | ||
| 518 | |||
| 519 | |||
| 509 | #if 0 | 520 | #if 0 |
| 510 | 521 | ||
| 511 | static void | 522 | static void |