MCPcopy Create free account
hub / github.com/NetHack/NetHack / menu_size_change_handler

Function menu_size_change_handler

win/X11/winmenu.c:105–124  ·  view source on GitHub ↗

ARGSUSED*/

Source from the content-addressed store, hash-verified

103
104/*ARGSUSED*/
105static void
106menu_size_change_handler(Widget w, XtPointer ptr, XEvent *event, Boolean *flag)
107{
108 struct xwindow *wp = (struct xwindow *) ptr;
109
110 nhUse(w);
111 nhUse(flag);
112
113 if (!wp || !event)
114 return;
115
116 if (iflags.perm_invent && wp == &window_list[WIN_INVEN]
117 && wp->menu_information->how == PICK_NONE) {
118 get_widget_window_geometry(wp->popup,
119 &wp->menu_information->permi_x,
120 &wp->menu_information->permi_y,
121 &wp->menu_information->permi_w,
122 &wp->menu_information->permi_h);
123 }
124}
125
126
127/*

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected