Difference between revisions of "Projects/KWin/Window Decoration Policy"

< Projects‎ | KWin
Jump to: navigation, search
(Created page with "= Window Decoration Policy = The [http://standards.freedesktop.org/wm-spec/wm-spec-latest.html EWMH specification] is very bogus about when a window should be decorated. This me...")
 
 
Line 11: Line 11:
 
* The window belongs to the Desktop Shell
 
* The window belongs to the Desktop Shell
 
* The window has _NET_WM_STATE _NET_WM_STATE_ABOVE '''and''' has set an own XShape
 
* The window has _NET_WM_STATE _NET_WM_STATE_ABOVE '''and''' has set an own XShape
* The window has _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_UTILITY '''and''' is a transient window '''and''' has set an own XShape
+
* The window is a "Qt Dock Widget"
  
 
== Why? ==
 
== Why? ==

Latest revision as of 20:18, 25 August 2011

Contents

[edit] Window Decoration Policy

The EWMH specification is very bogus about when a window should be decorated. This means that there is no existing policy when a window will be decorated by the window manager and when not. This document fixes this lack for the KDE Plasma Desktop workspace by clearly defining when a window is decorated. This policy applies since version 4.8.

[edit] Windows With Decorations

In general all windows managed (windows without override-redirect) by the Window Manager (KWin) are re-parented into a Server-Side Decoration unless:

  • The window has _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_DESKTOP
  • The window has _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_DOCK
  • The window has _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_SPLASH
  • The window belongs to the Desktop Shell
  • The window has _NET_WM_STATE _NET_WM_STATE_ABOVE and has set an own XShape
  • The window is a "Qt Dock Widget"

[edit] Why?

The KDE Plasma Workspaces guarantee a consistent look and feel for all windows. We want to provide the best possible user experience for each of our workspaces. We have different policies regarding when the server side decoration is shown for the different form factors. We don't want that the application developers have to adjust their application to work correctly on form factor desktop, netbook and tablet. Only by enforcing Server-Side decorations the workspaces can ensure that the correct user experience is implemented on each form factor.

[edit] My Application Looks Wrong

Even with Server-Side decoration it is possible to influence the look and feel of the decoration. Please get in touch with either the KWin or Oxygen developers for help.

[edit] I have an awesome idea and cannot implement it

Imagine each application would have an awesome idea how to handle window management. This would result in a setup where each window is different and broken. Innovation is important and we don't want to stop innovation. But innovation has to be done correctly. This means the workspace has to innovate how windows behave. Please get in touch with the KWin, Plasma and Oxygen developers and explain what you want to achieve. We can help you.

[edit] More Information On Client-Side Window Decorations


This page was last modified on 25 August 2011, at 20:18. This page has been accessed 812 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal