summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-03-01 05:01:29 +0000
committersabetts <sabetts>2001-03-01 05:01:29 +0000
commitdb8f252fca8d05f3f79ecbec76b85bb89df5581d (patch)
tree6a0d2095b805603c407f4bdda9c88bfb5d5af6b1 /src/list.c
parent811441c3d6f45b4d6eebbf919dac160619a3a389 (diff)
downloadratpoison-db8f252fca8d05f3f79ecbec76b85bb89df5581d.zip
* 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.
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c5
1 files changed, 3 insertions, 2 deletions
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");