From 927ab8b735a1db0a9a76bd3f95ff82f1c838d2ce Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Sun, 14 Jan 2001 20:25:32 +0000 Subject: [PATCH] make netwm dialogs movable and give them tab-focus svn path=/trunk/kdebase/kwin/; revision=78045 --- client.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client.cpp b/client.cpp index a040e40344..e329a6668a 100644 --- a/client.cpp +++ b/client.cpp @@ -502,7 +502,7 @@ Client::Client( Workspace *ws, WId w, QWidget *parent, const char *name, WFlags XFree( classHint.res_name ); XFree( classHint.res_class ); } - + getWMHints(); getWindowProtocols(); getWmNormalHints(); // get xSizeHint @@ -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 ) ); }