aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorJoakim Verona2011-12-28 04:12:56 +0100
committerJoakim Verona2011-12-28 04:12:56 +0100
commitbb29f044aa967831cd664c54eba0de0c701436ce (patch)
tree1398cc9780bbae0fdad071a3a3765a571c3f6d7b /src/widget.c
parent3c935a7e996701244d166f684119f0ff97e25496 (diff)
parent5e605a2e528955721fc6f2bd7b9f174c15075fb1 (diff)
downloademacs-bb29f044aa967831cd664c54eba0de0c701436ce.tar.gz
emacs-bb29f044aa967831cd664c54eba0de0c701436ce.zip
upstream i think
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/widget.c b/src/widget.c
index 0582718948d..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
512void
513widget_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
511static void 522static void
@@ -808,7 +819,7 @@ EmacsFrameQueryGeometry (Widget widget, XtWidgetGeometry *request, XtWidgetGeome
808 return result->request_mode ? XtGeometryAlmost : XtGeometryYes; 819 return result->request_mode ? XtGeometryAlmost : XtGeometryYes;
809} 820}
810 821
811/* Special entrypoints */ 822/* Special entry points */
812void 823void
813EmacsFrameSetCharSize (Widget widget, int columns, int rows) 824EmacsFrameSetCharSize (Widget widget, int columns, int rows)
814{ 825{