Change default value of input hint (if not specified) to true instead of

2002-07-05  Havoc Pennington  <hp@pobox.com>

	* src/window.c (update_wm_hints): Change default value of input
	hint (if not specified) to true instead of false. This is what
	some clients assume, such as Visual SlickEdit.
This commit is contained in:
Havoc Pennington 2002-07-05 04:31:49 +00:00 committed by Havoc Pennington
parent d826e620a9
commit b392d206d7
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-07-05 Havoc Pennington <hp@pobox.com>
* src/window.c (update_wm_hints): Change default value of input
hint (if not specified) to true instead of false. This is what
some clients assume, such as Visual SlickEdit.
2002-07-02 Havoc Pennington <hp@pobox.com> 2002-07-02 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_show_menu): use new macros to get * src/window.c (meta_window_show_menu): use new macros to get

View File

@ -4036,7 +4036,7 @@ update_wm_hints (MetaWindow *window)
XWMHints *hints; XWMHints *hints;
/* Fill in defaults */ /* Fill in defaults */
window->input = FALSE; window->input = TRUE;
window->initially_iconic = FALSE; window->initially_iconic = FALSE;
window->xgroup_leader = None; window->xgroup_leader = None;
window->wm_hints_pixmap = None; window->wm_hints_pixmap = None;
@ -4048,7 +4048,8 @@ update_wm_hints (MetaWindow *window)
window->xwindow); window->xwindow);
if (hints) if (hints)
{ {
window->input = ((hints->flags & InputHint) != 0) && hints->input; if (hints->flags & InputHint)
window->input = hints->input;
if (hints->flags & StateHint) if (hints->flags & StateHint)
window->initially_iconic = (hints->initial_state == IconicState); window->initially_iconic = (hints->initial_state == IconicState);