Ignore invalid size increment hints.
[gwm.git] / ChangeLog
blobb11dd9460efc5a4bd6961e06e0e11a7ed21a187d
1 2012-01-30  Gary Wong  <gtw@gnu.org>
3         * managed.c (managed_property_change): Ignore invalid size increment
4         hints.
6 2010-11-09  Gary Wong  <gtw@gnu.org>
8         * gwm.c (show_error) [USE_RANDR]: Show RANDR errors.
9         (update_crtc, handle_crtc_info) [USE_RANDR]: New functions.
10         (setup_display) [USE_RANDR]: Query CRTC information, if possible.
11         * root.c (root_configure_notify): Handle screen size changes.
12         (root_rr_crtc_change_notify) [USE_RANDR]: New function.
14         * frame.c (build_edges) [USE_RANDR]: Add CRTC edges to list.
15         * menu.c (fit_menu): New function.
16         * gwm.c (point_live, make_area_live): New functions.
17         (place_window) [USE_RANDR]: Keep windows within a CRTC, if possible.
19         * actions.c (window_list_enter): Make windows live upon selection.
20         (window_list_leave): Restore window position if it had been made live.
22 2010-11-05  Gary Wong  <gtw@gnu.org>
24         * decorate-core.c (core_update_window): Ignore childless frames.
25         * decorate-render.c (render_update_window): Likewise.
27 2010-11-01  Gary Wong  <gtw@gnu.org>
29         * window-table.c (table_insert_index, stack_insert): Fix rehashing
30         bug which could corrupt table sizes.
32 2010-06-01  Gary Wong  <gtw@gnu.org>
34         * decorate-render.c (query_metrics): Don't try to load metrics
35         for charsets that don't include the character.
37 2010-03-25  Gary Wong  <gtw@gnu.org>
39         * utf8.c (to_utf8): Fix ISO 8859-1 to UTF-8 conversion.
41 2009-12-06  Gary Wong  <gtw@gnu.org>
43         * root.c (root_reparent_notify): Handle cases where a window is
44         "reparented" to its current parent.
46         * window-table.c (stack_move_above): Treat moving a window above
47         itself as a no-op.
48         (stack_insert_singleton, stack_insert_above, stack_remove)
49         (stack_move_above): Add extra assertions.
51 2009-09-11  Gary Wong  <gtw@gnu.org>
53         * decorate-core.c (decorate_core_init): Moved to the initialisation
54         section.
55         * decorate-render.c (decorate_render_init, decorate_compat_init):
56         Likewise.
57         * window-table.c (table_init, stack_init): Likewise.
58         * gwm.c (setup_display, unknown): Likewise.
59         (init): New function.
60         (main) [HAVE_INIT_SECTION]: Deallocate the initialisation section.
62 2009-09-10  Gary Wong  <gtw@gnu.org>
64         * gwm.c (setup_display): Make sure the root event mask change is
65         atomic with the query of its children.
66         (shutdown_display): Process any remaining MapRequest,
67         ConfigureRequest or CirculateRequest events before closing.
69 2009-09-09  Gary Wong  <gtw@gnu.org>
71         * actions.c (action_window_list_menu): Insert windows into the
72         menu by screen, in bottom-to-top stacking order.
74         * frame.c (synthetic_configure_notify): Ignore Window errors on
75         the SendEvent.
77 2009-09-08  Gary Wong  <gtw@gnu.org>
79         * actions.c (window_list_enter, window_list_leave): New functions.
80         (window_list_activate): Destroy the place holder window.
81         (action_window_list_menu): Add enter and leave actions.
82         * decorate-render.c (render_update_window): Look up menu item
83         icons each time, in case the corresponding window has been
84         destroyed.
85         * frame.c (activate_focus_frame): New function.
86         (frame_enter_notify): Call activate_focus_frame().
88         * menu.c (deactivate_menu_item): New function.
89         (menu_enter_notify, menu_leave_notify): Invoke the menu item's
90         enter and leave actions, if set.
91         (popup_menu): Store the menu item enter and leave actions.
93         * window-table.c (table_hash): Take the hash and size as parameters.
94         All callers changed.
95         (stack_init, stack_destroy, stack_lookup, stack_insert_new)
96         (stack_rehash, stack_insert, stack_insert_new, stack_insert_singleton)
97         (stack_insert_above, stack_remove, stack_move_above)
98         (stack_real_below): New functions.
100         * gwm.c (setup_display): Initialise window_stack, add
101         SubstructureNotify to the root event masks, and add the
102         roots and existing windows to the stack.
103         (shutdown_display): Use the stored stacking order instead of
104         querying it from the server.
105         * root.c (root_create_notify, root_destroy_notify)
106         (root_reparent_notify, root_configure_notify): New functions.
108         * gwm.c (event_time): New function.
110 2009-09-07  Gary Wong  <gtw@gnu.org>
112         * decorate-core.c (handle_get_default_map): We want the property
113         length in format units, not bytes.
114         * decorate-render.c (handle_get_default_map): Likewise.
116 2009-09-07  Gary Wong  <gtw@gnu.org>
118         * gwm.c (setup_display): Add _NET_SUPPORTING_WM_CHECK property to
119         fake window.
121 2009-09-06  Gary Wong  <gtw@gnu.org>
123         * frame.c (update_frame_extents): New function.
124         * gwm.c (start_managing_window): Update _NET_FRAME_EXTENTS property.
125         * managed.c (managed_property_change): Likewise.
127 2009-09-06  Gary Wong  <gtw@gnu.org>
129         * gwm.c (setup_display): Add various EWMH properties to the root
130         and fake windows.
131         (shutdown_display): Remove EWMH root properties.
133 2009-09-06  Gary Wong  <gtw@gnu.org>
135         * decorate-core.c (core_replace_icons): New function.
136         * decorate-render.c (render_picture, assemble_image)
137         (render_replace_icons): New functions.
138         (render_update_window): Draw icons in menus where requested.
139         (decorate_render_init): Look for suitable PictFormats.
140         * gwm.c (start_managing_window): Initialise icons.
141         (unmanage_window): Deallocate icons.
142         (setup_display): Add _NET_WM_ICON property.
144         * managed.c (handle_managed_get_property, async_get_property): Use
145         the window resource ID instead of a pointer to identify the window,
146         to detect if it disappears asynchronously.
147         (handle_get_geometry): New function.
148         (managed_property_change): Handle _NET_WM_ICON, and the icon
149         parameters of WM_HINTS.
150         * menu.c (popup_menu): Allow icons in menus.
151         * actions.c (action_window_list_menu): Add icons to menu.
153 2009-09-03  Gary Wong  <gtw@gnu.org>
155         * decorate-core.c (core_text): Use utf8_next().
156         (core_window_size): Use utf8_length().
158 2009-09-02  Gary Wong  <gtw@gnu.org>
160         * utf8.c (utf8_illegal, utf8_length, utf8_next)
161         (utf8_dup_valid, utf8_dup_valid_len, dup_valid_common): New functions.
162         (to_utf8) [DEBUG]: Add sanity checks.
163         * decorate-render.c (render_text): Use utf8_length() and utf8_next().
164         (text_width): Use utf8_next().
165         * managed.c (managed_property_change): Use utf8_dup_valid_len().
167         * frame.c (recalc_size): Avoid needless C99isms.
168         * gwm.c (place_window): Likewise.
169         * window-table.c (table_hash): Likewise.
171 2009-09-01  Gary Wong  <gtw@gnu.org>
173         * actions.c (action_map_raise, action_window_list_menu)
174         (action_exit, window_list_activate): New functions.
175         * gwm.c (main): Use which_signal -1 to indicate a graceful exit.
177         * menu.c (menu_button_release, popup_menu): Remember the window
178         parameter by resource ID, instead of by pointer.  That way, it is
179         simple to detect whether the window has been destroyed between
180         creation and activation of the menu.
182         * menu.c (menu_enter_notify): Don't try to measure the active item
183         when nothing is active.
185         * menu.c (destroy_menu): Don't free NULL labels.
186         (popup_menu): Don't strdup() NULL labels.
188 2009-09-01  Gary Wong  <gtw@gnu.org>
190         * actions.c (action_iconify_window, action_deiconify_window): New
191         functions.
192         * keyboard.c (establish_grabs): Replace NUM_KEY_ACTIONS with new
193         num_key_actions symbol.
194         * managed.c (set_managed_state, iconic_to_normal): Moved from gwm.c.
195         (normal_to_iconic): New function.
196         * gwm.c (handle_client_message): Use new normal_to_iconic() function.
197         * root.c (root_key_press): Likewise.
199 2009-09-01  Gary Wong  <gtw@gnu.org>
201         * menu.c, menu.h: New files.
202         * actions.c: Added callback parameter to all actions.  All callers
203         changed.
204         (action_root_menu, action_window_menu): New functions.
205         * decorate-core.c (core_update_window): Draw menu items.
206         (core_window_size): New function.
207         * decorate-render.c (render_update_window): Draw menu items.
208         (text_width, render_window_size): New functions.
209         * frame.c (recalc_size): Call window_size() to obtain feedback
210         dimensions.
211         (frame_button_press): Pop up a menu on button 2 presses.
212         * gwm.c (show_window): Annotate menu windows.
213         (setup_display): Initialise window_size.
214         (start_managing_window): Add OwnerGrabButton to frame windows.
215         (setup_display): Add OwnerGrabButton to the roots.
217 2009-09-01  Gary Wong  <gtw@gnu.org>
219         * gwm.c (handle_events): Replace passive_grab with pointer_demux,
220         which redirects events on the client side.
221         (start_managing_window): Set initial event mask for
222         the frame button window, instead of an explicit GrabButton.
223         * button.c (button_button_press, button_button_release): Use
224         pointer_demux instead of GrabButton.
225         (button_enter_notify, button_leave_notify): Inspect event parameters
226         to determine which window is entered/left.
227         * frame.c (frame_button_press, frame_button_release): Use
228         pointer_demux instead of passive_grab.
229         (frame_motion_notify, frame_destroy_notify): Likewise.
230         (frame_enter_notify): Ignore events when pointer_demux is set.
231         * window-table.c (forget_window): Remove pointer_demux from
232         forgotten windows.
234 2009-08-31  Gary Wong  <gtw@gnu.org>
236         * gwm.c (show_atom): Declare predefined_names[] as const.
237         (show_error): Declare render_strings[] as const.
238         (show_event): Declare event_names[] as const.
239         (setup_display): Use auto storage class for wm_atom_str.
241 2009-08-31  Gary Wong  <gtw@gnu.org>
243         * gwm.c (start_managing_window): Create "border region" input-only
244         windows, to allow setting different cursors on various border parts.
246         * frame.c (frame_configure_notify): Update the geometry of the
247         border regions.
248         * decorate-core.c (decorate_core_init): Cursor indices were rearranged.
249         * decorate-render.c (decorate_compat_init): Likewise.
251         * frame.c (frame_button_press): Do not recognise a passive grab
252         propagated from the client.
254 2009-08-31  Gary Wong  <gtw@gnu.org>
256         * frame.c (frame_t, frame_xb): Make window decorations optional.
257         (frame_blr): New function.
258         (frame_b, frame_l, frame_r): Invoke frame_blr().
259         (deactivate_focus_frame): Moved from gwm.c.
260         (frame_button_press, frame_enter_notify): Make window decorations
261         optional.
262         * gwm.c (start_managing_window): Likewise.
263         (setup_display): Add _MOTIF_WM_HINTS property.
264         * managed.c (managed_property_change): Handle _MOTIF_WM_HINTS property.
265         (match_managed_shape): Retrieve _MOTIF_WM_HINTS when a client
266         window is no longer bounding shaped.
268 2009-08-31  Gary Wong  <gtw@gnu.org>
270         * button.c (button_size, button_xb): New functions.  All references
271         to former constants updated.
272         * frame.c (frame_t, frame_b, frame_l, frame_r, frame_xb): New
273         functions.  All references to former constants updated.
274         (translate_child_to_frame, translate_frame_to_child): Moved
275         from gwm.c.
276         (apply_size_constraints): Likewise.
278 2009-08-30  Gary Wong  <gtw@gnu.org>
280         * frame.c (frame_button_release): Ignore the event unless the
281         window was the one to establish the passive grab.
282         (frame_destroy_notify): New function.
284 2009-08-30  Gary Wong  <gtw@gnu.org>
286         * decorate-render.c (lookup_face): New function.
287         (query_metrics, query_glyph, replace_glyph, render_text): Take style
288         into consideration.
289         (render_update_window): Use styles, as appropriate.
290         (decorate_render_init): Remember fontconfig charsets and patterns
291         for each face in each style.
292         (decorate_render_done): Clean up fontconfig charsets and patterns.
294 2009-08-29  Gary Wong  <gtw@gnu.org>
296         * frame.c (build_edges): Use xmalloc() instead of malloc().
298 2009-08-29  Gary Wong  <gtw@gnu.org>
300         * managed.c (managed_property_change): Use _NET_WM_NAME in preference
301         to WM_NAME.
302         (async_get_property): New function.
303         (managed_property_notify): Use async_get_property.
304         * gwm.c (start_managing_window): Initialise net_wm_name.
305         (setup_display): Add _NET_WM_NAME property.
307 2009-08-28  Gary Wong  <gtw@gnu.org>
309         * frame.c (recalc_size): Initialise feedback->u.feedback.
311 2009-08-28  Gary Wong  <gtw@gnu.org>
313         * gwm.c (unmanage_window): Put the parent of the unmanaged child
314         into a childless state, so that lingering events can be handled
315         correctly.
316         (handle_destroy_window): New function.
317         (show_window): Annotate childless windows.
318         * managed.c (withdrawn_map_request, withdrawn_configure_request): New
319         functions.
321 2009-08-28  Gary Wong  <gtw@gnu.org>
323         * decorate-render.c (decorate_render_init): Cast FONT_NAME
324         to (FcChar8 *).
326 2009-08-28  Gary Wong  <gtw@gnu.org>
328         * gwm.c (shutdown_display): Reparent the windows in strict stacking
329         order.
331 2009-08-28  Gary Wong  <gtw@gnu.org>
333         * decorate-render.c (query_metrics, render_text, render_update_window,
334         decorate_render_init): Replace FONT_FAMILY, FONT_WEIGHT,
335         FONT_PIXEL_SIZE, FONT_LOAD_TARGET with FONT_NAME.
337 2009-08-28  Gary Wong  <gtw@gnu.org>
339         * decorate-render.c (query_metrics, replace_glyph): Don't
340         bother comparing the first cache line with itself.
342 2009-08-27  Gary Wong  <gtw@gnu.org>
344         * decorate-render.c, decorate-render.h: New files.  Implement
345         window decoration with RENDER extension (text only, so far).
346         * gwm.c (setup_display, shutdown_display): Set up and clean up
347         RENDER extension when available.
348         (show_error): Show RENDER errors.
350         * decorate-core.c (core_update_window): Issue SetClipRectangles
351         request.
353 2009-08-27  Gary Wong  <gtw@gnu.org>
355         * gwm.c (sync_with_callback): Perform the sequence comparison
356         with unsigned arithmetic, so that overflow semantics are
357         well-defined.
359 2009-08-27  Gary Wong  <gtw@gnu.org>
361         * frame.c (recalc_size): Implement edge resistance when resizing
362         frames.
363         (edge_resist): New function.
365 2009-08-26  Gary Wong  <gtw@gnu.org>
367         * frame.c (frame_motion_notify, frame_button_release): Implement
368         edge resistance when moving frames.
369         (build_edges, free_edges, h_edge_compare, v_edge_compare): New
370         functions.
372 2009-08-25  Gary Wong  <gtw@gnu.org>
374         * frame.c (frame_motion_notify): Ignore single pixel movements, and
375         account for window border.
377 2009-08-25  Gary Wong  <gtw@gnu.org>
379         * window-table.c (queue_window_update): Mark the update box as
380         uncleared if we enlarge the bounding box.
382 2009-08-25  Gary Wong  <gtw@gnu.org>
384         * gwm.c, gwm.h (warning, fatal): Export warning and fatal functions.
386 2009-08-25  Gary Wong  <gtw@gnu.org>
388         * window-table.c (queue_window_update): Properly compute the
389         update region when the old region was empty.
391 2009-08-24  Gary Wong  <gtw@gnu.org>
393         * gwm.c (shutdown_display) [DEBUG]: Call muntrace() only when
394         [HAVE_MTRACE].
396 2009-08-23  Gary Wong  <gtw@gnu.org>
398         * managed.c (managed_shape_notify): Respond to ShapeNotify events
399         only when they describe modifications to the bounding region.
401 2009-08-22  Gary Wong  <gtw@gnu.org>
403         * gwm.c (start_managing_window): Send a synthetic ConfigureNotify
404         to the client, because we've almost certainly moved their window.
406 2009-08-22  Gary Wong  <gtw@gnu.org>
408         * actions.c, actions.h, button.c, button.h, decorate-core.c,
409         decorate-core.h, frame.c, frame.h, gwm.c, gwm.h, keyboard.c,
410         keyboard.h, managed.c, managed.h, root.c, root.h, utf8.c, utf8.h,
411         window-table.c, window-table.h, Makefile.am, configure.ac: New
412         files, and version 1.0 release.