Revision 129c48d...

Go back to digest for 7th April 2013

Features in KDE Base

Martin Gräßlin committed changes in [kde-workspace] /:

Split out screen handling from Workspace into own class Screens

Following the approaches of other split out functionality Screens is a
singleton class created by Workspace.

The class takes over the responsibility for:
* screenChanged signal delayed by timer
* number of screens
* geometry of given screen
* active screen
* config option for active screen follows mouse

The class contains a small abstraction layer and has a concrete subclass
wrapping around QDesktopWidget, but the idea is to go more low level and
interact with XRandR directly to get more detailed information.

All over KWin the usage from QDesktopWidget is ported over to the new
Screens class.

REVIEW: 109839

File Changes

Added 2 files
  •   kwin/screens.cpp
  •   kwin/screens.h
Modified 22 files
  •   kwin/activation.cpp
  •   kwin/CMakeLists.txt
  •   kwin/effects.cpp
  •   kwin/events.cpp
  •   kwin/focuschain.cpp
  •   kwin/geometry.cpp
  •   kwin/layers.cpp
  •   kwin/manage.cpp
  •   kwin/options.cpp
  •   kwin/options.h
  •   kwin/rules.cpp
  •   kwin/scene_opengl.cpp
  •   kwin/screenedge.cpp
  •   kwin/toplevel.cpp
  •   kwin/toplevel.h
  •   kwin/useractions.cpp
  •   kwin/workspace.cpp
  •   kwin/workspace.h
  •   kwin/scripting/scripting_model.cpp
  •   kwin/scripting/scripting_model.h
  •   kwin/scripting/workspace_wrapper.cpp
  •   kwin/tabbox/tabbox.cpp
24 files changed in total