summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-07-05 04:31:49 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-07-05 04:31:49 +0000
commitb392d206d7d02ca1dd476d22112a9c333ea57fdb (patch)
treefdb5b54fa3f51e1f3e2031aa366c8c0dc58cd1c6 /src
parentd826e620a9719527c535aa6c5e5d11ebeaa0afd5 (diff)
downloadmetacity-b392d206d7d02ca1dd476d22112a9c333ea57fdb.tar.gz
metacity-b392d206d7d02ca1dd476d22112a9c333ea57fdb.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 9eccea1..531330d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4036,7 +4036,7 @@ update_wm_hints (MetaWindow *window)
XWMHints *hints;
/* Fill in defaults */
- window->input = FALSE;
+ window->input = TRUE;
window->initially_iconic = FALSE;
window->xgroup_leader = None;
window->wm_hints_pixmap = None;
@@ -4048,7 +4048,8 @@ update_wm_hints (MetaWindow *window)
window->xwindow);
if (hints)
{
- window->input = ((hints->flags & InputHint) != 0) && hints->input;
+ if (hints->flags & InputHint)
+ window->input = hints->input;
if (hints->flags & StateHint)
window->initially_iconic = (hints->initial_state == IconicState);