My KWIN fork where I work on features like per-output virtual desktops
Find a file
Vlad Zahorodnii 8cb7e0a26b Simplify X11Window::updateServerGeometry()
There are two shapes that the WM needs to be concerned about: the input
shape and normal shape.

If the client window has custom input shape, the window manager should
synchronize it with all parent windows or ensure that its frame window
has an input shape as big as the client's input shape. The input shape
needs to be updated either when the client changes it or when the
X11Window is resized or its borders have changed. updateInputShape()
accomplishes that.

The normal shape is slightly different. If the window is decorated, the
window manager could ignore the shape set by the client. If the window
is not decorated, it's a good idea for the WM to synchronize client's
shape with the frame window's shape (if there's any). The frame window
shape doesn't need to be updated when it's resized, but if the client
window moves inside the frame window, it needs to be updated.

This change removes too generic updateShape() in the
X11Window::moveResize() code path and replaces it with a more targeted
code to update the shape, so updateServerGeometry() does not emit the
shapeChanged signal and it can be reused in the doInteractiveResizeSync()
function. Note that on wayland, it's unnecessary to synchronize the
shapes because the client window never moves in the frame window but it
is done anyway to minimize the differences between X and Wayland sessions
for easier maintenance.
2024-07-04 11:27:59 +00:00
autotests autotests/drm: add test for vrr capability changing without a hotunplug 2024-06-24 18:47:00 +02:00
cmake/modules xwayland: Enable xtest libei integration 2024-05-15 09:31:53 +00:00
data Optimize all PNGs losslessly, sans /po, saves 360KB~ 2024-03-16 23:53:12 +00:00
doc Optimize all PNGs losslessly, sans /po, saves 360KB~ 2024-03-16 23:53:12 +00:00
examples examples: Fix License metadata 2024-03-05 11:02:37 +00:00
kconf_update Remove orphan shortcuts for desktop grid and expose effects 2024-06-04 10:09:08 +00:00
LICENSES Remove unused license file 2022-08-23 17:41:55 +02:00
po GIT_SILENT Sync po/docbooks with svn 2024-07-04 01:26:29 +00:00
src Simplify X11Window::updateServerGeometry() 2024-07-04 11:27:59 +00:00
tests Make it possible to build KWin without libxcb 2024-02-28 16:03:50 +00:00
.clang-format clang-format: change the indentation of lambdas 2024-03-18 14:04:33 +00:00
.gitignore Add .directory to .gitignore 2024-03-07 17:20:53 +08:00
.gitlab-ci.yml Revert "Disable freebsd ci" 2024-05-02 09:39:13 +00:00
.kde-ci.yml ci: Add plasma-workspace to RuntimeDependencies 2023-12-21 10:40:41 +00:00
CMakeLists.txt use separation dep_version to build against, updated by release scripts 2024-06-27 12:42:45 +01:00
CONTRIBUTING.md docs/contributing: Update windowswitchers location 2024-05-15 18:36:46 +02:00
KWinDBusInterfaceConfig.cmake.in plugins/nightcolor: Rename d-bus interface 2024-02-08 14:24:51 +00:00
logo.png Optimize all PNGs losslessly, sans /po, saves 360KB~ 2024-03-16 23:53:12 +00:00
Mainpage.dox
plasma-kwin_wayland.service.in systemd: Set up a watchdog 2024-02-22 16:47:35 +00:00
plasma-kwin_x11.service.in [systemd] Fix X11 service file 2022-01-20 16:18:48 +00:00
README.md doc: modernise HACKING -> CONTRIBUTING guidelines and information 2021-08-31 22:10:58 +00:00

KWin

KWin is an easy to use, but flexible, composited Window Manager for Xorg windowing systems (Wayland, X11) on Linux. Its primary usage is in conjunction with a Desktop Shell (e.g. KDE Plasma Desktop). KWin is designed to go out of the way; users should not notice that they use a window manager at all. Nevertheless KWin provides a steep learning curve for advanced features, which are available, if they do not conflict with the primary mission. KWin does not have a dedicated targeted user group, but follows the targeted user group of the Desktop Shell using KWin as it's window manager.

KWin is not...

  • a standalone window manager (c.f. openbox, i3) and does not provide any functionality belonging to a Desktop Shell.
  • a replacement for window managers designed for use with a specific Desktop Shell (e.g. GNOME Shell)
  • a minimalistic window manager
  • designed for use without compositing or for X11 network transparency, though both are possible.

Contributing to KWin

Please refer to the contributing document for everything you need to know to get started contributing to KWin.

Contacting KWin development team

  • mailing list: kwin@kde.org
  • IRC: #kde-kwin on irc.libera.chat

Support

Application Developer

If you are an application developer having questions regarding windowing systems (either X11 or Wayland) please do not hesitate to contact us. Preferable through our mailing list. Ideally subscribe to the mailing list, so that your mail doesn't get stuck in the moderation queue.

End user

Please contact the support channels of your Linux distribution for user support. The KWin development team does not provide end user support.

Reporting bugs

Please use KDE's bugtracker and report for product KWin.

Guidelines for new features

A new Feature can only be added to KWin if:

  • it does not violate the primary missions as stated at the start of this document
  • it does not introduce instabilities
  • it is maintained, that is bugs are fixed in a timely manner (second next minor release) if it is not a corner case.
  • it works together with all existing features
  • it supports both single and multi screen (xrandr)
  • it adds a significant advantage
  • it is feature complete, that is supports at least all useful features from competitive implementations
  • it is not a special case for a small user group
  • it does not increase code complexity significantly
  • it does not affect KWin's license (GPLv2+)

All new added features are under probation, that is if any of the non-functional requirements as listed above do not hold true in the next two feature releases, the added feature will be removed again.

The same non functional requirements hold true for any kind of plugins (effects, scripts, etc.). It is suggested to use scripted plugins and distribute them separately.