diff options
author | sabetts <sabetts> | 2000-08-27 23:21:00 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-08-27 23:21:00 +0000 |
commit | 98a3dea008502975d0b4958a8dc2c4f37bfa6b80 (patch) | |
tree | ec6b94f9b93632859e314bb12f544ae01f413000 /manage.c | |
parent | 2f020a0d37e9bfb0b8ebc40062622ae4f200e4a1 (diff) | |
download | ratpoison-98a3dea008502975d0b4958a8dc2c4f37bfa6b80.zip |
integrated the number sources. windows now keep the number they're
given.
Diffstat (limited to 'manage.c')
-rw-r--r-- | manage.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -130,7 +130,9 @@ manage (rp_window *win, screen_info *s) XSelectInput (dpy, win->w, PropertyChangeMask); XAddToSaveSet(dpy, win->w); grab_prefix_key (win->w); + win->state = STATE_MAPPED; + win->number = get_unique_window_number (); #ifdef DEBUG printf ("window '%s' managed.\n", win->name); @@ -140,7 +142,9 @@ manage (rp_window *win, screen_info *s) void unmanage (rp_window *w) { + return_window_number (w->number); remove_from_window_list (w); + last_window (); } /* When starting up scan existing windows and start managing them. */ |