focus handling on lower()

svn path=/trunk/kdebase/kwin/; revision=56651
This commit is contained in:
Matthias Ettrich 2000-07-13 20:38:10 +00:00
parent d653417387
commit 0012e5088b
3 changed files with 3 additions and 5 deletions

View file

@ -421,7 +421,6 @@ Client::Client( Workspace *ws, WId w, QWidget *parent, const char *name, WFlags
active = FALSE;
shaded = FALSE;
transient_for = None;
passive_focus = FALSE;
is_shape = FALSE;
is_sticky = FALSE;
stays_on_top = FALSE;
@ -2231,7 +2230,7 @@ NET::WindowType Client::windowType() const
bool Client::wantsTabFocus() const
{
return windowType() == NET::Normal;
return windowType() == NET::Normal && input;
}
bool Client::isMovable() const

View file

@ -126,7 +126,7 @@ public:
bool isDesktop() const;
bool isDock() const;
bool isMenu() const;
bool isResizable() const;
void takeFocus();
@ -251,7 +251,6 @@ private:
uint stays_on_top : 1;
uint is_shape :1;
uint may_move :1;
uint passive_focus :1;
uint Pdeletewindow :1; // does the window understand the DeleteWindow protocol?
uint Ptakefocus :1;// does the window understand the TakeFocus protocol?
uint Pcontexthelp : 1; // does the window understand the ContextHelp protocol?

View file

@ -1536,7 +1536,7 @@ void Workspace::lowerClient( Client* c, bool dropFocus )
delete [] new_stack;
propagateClients( TRUE );
if (dropFocus ) {
Client* top = topClientOnDesktop();
if ( top )