make netwm dialogs movable and give them tab-focus
svn path=/trunk/kdebase/kwin/; revision=78045
This commit is contained in:
parent
e9d30a20d7
commit
927ab8b735
1 changed files with 4 additions and 3 deletions
|
@ -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 ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue