From db8f252fca8d05f3f79ecbec76b85bb89df5581d Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 1 Mar 2001 05:01:29 +0000 Subject: * manage.c (map_window): calls update_window_information. * manage.h (map_window): new prototype. * events.c (new_window): calls update_window_information on new windows. (map_request): calls map_window on managed unmapped windows. (configure_request): removed commented out old crusty code. Updates window's structure based on what bits are set in the event's value_mask. Doesn't honour resize request. Windows are always maximized. (property_notify): doesn't call maximize when WM_NORMAL_HINTS are updated. * manage.c (manage): no longer maps the window, this code is in map_window. (map_window): new function (maximize): no longer sends a synthetic configure event. (scanwins): calls map_window on viewable windows. (update_window_information): renamed from manage. dependant code updated. --- src/list.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/list.c') diff --git a/src/list.c b/src/list.c index ca79794..12b5bbb 100644 --- a/src/list.c +++ b/src/list.c @@ -63,11 +63,12 @@ add_to_window_list (screen_info *s, Window w) new_window->hints = XAllocSizeHints (); new_window->colormap = DefaultColormap (dpy, s->screen_num); new_window->transient = XGetTransientForHint (dpy, new_window->w, &new_window->transient_for); + PRINT_DEBUG ("transient %d\n", new_window->transient); get_mouse_root_position (new_window, &new_window->mouse_x, &new_window->mouse_y); - PRINT_DEBUG ("transient %d\n", new_window->transient); - + XSelectInput (dpy, new_window->w, PropertyChangeMask | ColormapChangeMask); + if ((new_window->name = malloc (strlen ("Unnamed") + 1)) == NULL) { PRINT_ERROR ("Out of memory!\n"); -- cgit v1.2.3