make netwm dialogs movable and give them tab-focus

svn path=/trunk/kdebase/kwin/; revision=78045
icc-effect-5.14.5
Matthias Ettrich 2001-01-14 20:25:32 +00:00
parent e9d30a20d7
commit 927ab8b735
1 changed files with 4 additions and 3 deletions

View File

@ -2686,7 +2686,8 @@ NET::WindowType Client::windowType() const
bool Client::wantsTabFocus() const
{
return (windowType() == NET::Normal || windowType() == NET::Override ) && ( input || Ptakefocus ) && !skip_taskbar;
return (windowType() == NET::Normal || windowType() == NET::Dialog || windowType() == NET::Override )
&& ( input || Ptakefocus ) && !skip_taskbar;
}
@ -2702,7 +2703,7 @@ bool Client::wantsInput() const
bool Client::isMovable() const
{
return may_move &&
( windowType() == NET::Normal || windowType() == NET::Toolbar ) &&
( windowType() == NET::Normal || windowType() == NET::Dialog || windowType() == NET::Toolbar ) &&
( !isMaximized() || ( options->moveResizeMaximizedWindows || max_mode != MaximizeFull ) );
}