From 64bf5bc51e7564978e37afa82006df396629b251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 10 Jul 2006 18:20:25 +0000 Subject: [PATCH] Don't track InputOnly windows. svn path=/branches/work/kwin_composite/; revision=560591 --- unmanaged.cpp | 2 ++ workspace.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/unmanaged.cpp b/unmanaged.cpp index 5b0a2e335f..1f7badb632 100644 --- a/unmanaged.cpp +++ b/unmanaged.cpp @@ -32,6 +32,8 @@ bool Unmanaged::track( Window w ) XWindowAttributes attr; if( !XGetWindowAttributes(display(), w, &attr)) return false; + if( attr.c_class == InputOnly ) + return false; setHandle( w ); geom = QRect( attr.x, attr.y, attr.width, attr.height ); vis = attr.visual; diff --git a/workspace.cpp b/workspace.cpp index 34aef32842..a3c5694508 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -360,7 +360,7 @@ void Workspace::init() XGetWindowAttributes(display(), wins[i], &attr); if (attr.override_redirect ) { - if( attr.map_state != IsUnmapped && compositing()) + if( attr.map_state != IsUnmapped && attr.c_class != InputOnly && compositing()) createUnmanaged( wins[ i ] ); continue; }