1. 10 Jan, 2018 2 commits
    • Martin Flöser's avatar
      Simulate user activity on fake input events · b002b279
      Martin Flöser authored
      Summary:
      This ensures that using KDE Connect to control input properly inhibits
      idle timeouts.
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #plasma
      
      Differential Revision: https://phabricator.kde.org/D9555
      b002b279
    • David Edmundson's avatar
      Fix Plastik bottom and right border · 04dbafd7
      David Edmundson authored
      Summary:
      x and y are always relative to the parent, adding parent.width to
      calculate the position doesn't make sense.
      
      Original author meant just "x: parent.width-1"
      But we may as well just use anchors. Programatically it comes out the
      same.
      
      Test Plan:
      No more weird vertical lines in the KCM when view is slightly less than 2 previews wide.
      Modded colour to hardcoded "red" for easier visualisation, checked it looked ok when set as a real deco.
      
      Reviewers: #plasma
      
      Subscribers: plasma-devel, kwin, #kwin
      
      Tags: #plasma
      
      Differential Revision: https://phabricator.kde.org/D9776
      04dbafd7
  2. 09 Jan, 2018 2 commits
  3. 08 Jan, 2018 1 commit
  4. 07 Jan, 2018 1 commit
  5. 06 Jan, 2018 2 commits
    • Martin Flöser's avatar
      [autotests] Add test case for fullscreen window with groups · 87ebfd15
      Martin Flöser authored
      When an X11 window is raised to fullscreen it gets set to active layer.
      When another window gets activated then it goes back to normal layer.
      But when a window of the same group gets activated the fullscreen window
      stays in the active layer. Due to that it is not possible to raise other
      windows above the fullscreen window.
      
      This just adds a test case exposing the problematic area.
      
      CCBUG: 388310
      87ebfd15
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · 7764de04
      Script Kiddy authored
      In case of conflict in i18n, keep the version of the branch "ours"
      To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
      7764de04
  6. 05 Jan, 2018 5 commits
  7. 04 Jan, 2018 3 commits
    • David Edmundson's avatar
      Add explicit protocol for colour scheme management · 01d6878d
      David Edmundson authored
      Summary:
      To replace the deprecated/broken qt extended surface
      
      BUG: 385214
      
      Test Plan: Ran test in plasma-integration
      
      Reviewers: #plasma, graesslin
      
      Reviewed By: #plasma, graesslin
      
      Subscribers: plasma-devel, kwin, #kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D9660
      01d6878d
    • Martin Flöser's avatar
      [libinput] Add support for switch devices and events · ac2f41c8
      Martin Flöser authored
      Summary:
      This change adds support for the switch devices introduces with libinput
      1.7 (lid) and 1.9 (tablet mode). So far it's not yet used internally in
      KWin, but only exposed through the Device and Events.
      
      As KWin currently only requires libinput 1.5 and we are rather late in
      the release cycle the new functionality is ifdef'ed. The requirement
      will be raised once master is 5.13. It is already available on
      build.kde.org, but e.g. Neon only has 1.6.
      
      The switch events are interesting as they report whether the lid is
      closed (might be interesting for e.g. powerdevil) and whether a
      convertible is in tablet mode (supported for e.g. Lenovo Yogas with
      recent kernel). This can be used by KWin internally to enable/disable
      the virtual keyboard. And can be exposed globally to switch to Plasma
      Mobile shell in future.
      
      Test Plan:
      Only through test case as my Lenovo Yoga uses Neon which has a
      too old libinput
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #plasma
      
      Differential Revision: https://phabricator.kde.org/D9516
      ac2f41c8
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · a252ff96
      Script Kiddy authored
      In case of conflict in i18n, keep the version of the branch "ours"
      To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
      a252ff96
  8. 03 Jan, 2018 3 commits
  9. 02 Jan, 2018 1 commit
  10. 01 Jan, 2018 2 commits
    • Vlad Zahorodnii's avatar
      [effects/slide] Handle moving clients · 20780c6f
      Vlad Zahorodnii authored
      Summary:
      Currently, slide effect doesn't handle a case when there
      is a moving client. This results in having window jumps.
      This commit fixes it by fixing position of the moving client
      during switching to another desktop.
      
      Test Plan: * send window one desktop to the left/right using shortcuts
      
      Reviewers: #kwin, #plasma, graesslin
      
      Reviewed By: #kwin, #plasma, graesslin
      
      Subscribers: graesslin, plasma-devel, kwin
      
      Tags: #plasma
      
      Differential Revision: https://phabricator.kde.org/D9487
      20780c6f
    • Vlad Zahorodnii's avatar
      [effects/slide] Add 'Duration' option · 8a02a802
      Vlad Zahorodnii authored
      Summary:
      At the moment, there is no way to tweak duration of the slide animation.
      This change adds a configuration module so it is possible to change
      the duration.
      
      Test Plan:
      * enable virtual desktops
      * go to `System Settings > Desktop Behaviour > Desktop Effects`
        and select Slide effect under "Virtual Desktop Switching Animation"
      * click settings/options button and change duration
      
      Reviewers: #kwin, #plasma, graesslin
      
      Reviewed By: #kwin, #plasma, graesslin
      
      Subscribers: graesslin, plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D9382
      8a02a802
  11. 31 Dec, 2017 1 commit
  12. 30 Dec, 2017 1 commit
  13. 29 Dec, 2017 1 commit
    • Nathaniel Graham's avatar
      Improve some strings and UI elements in KWin KCM · 819230d4
      Nathaniel Graham authored
      Summary:
      BUG: 386571
      BUG: 386574
      BUG: 386576
      
      Implemented some of @abetts' string change and UI suggestions in the above bugs.
      
      Test Plan:
      Tested in KDE Neon:
      
      {F5540279}
      
      {F5540277}
      
      {F5540278}
      
      Reviewers: abetts, #vdg, #kwin, davidedmundson, graesslin, apol
      
      Reviewed By: abetts, #vdg, davidedmundson, apol
      
      Subscribers: apol, jriddell, luebking, graesslin, kwin, abetts
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D8682
      819230d4
  14. 28 Dec, 2017 1 commit
  15. 27 Dec, 2017 1 commit
  16. 26 Dec, 2017 1 commit
    • Martin Flöser's avatar
      Add DBus interface to OrientationSensor and a persistent configuration · e0b1a571
      Martin Flöser authored
      Summary:
      The initial state for user enabled is now read from config. In addition
      a DBus interface is provided exporting this property. This allows
      KScreen to determine whether automatic screen rotation is available and
      whether the user has it enabled or not.
      
      Furthermore KScreen can change the property and this gets stored into
      the configuration. Thus KScreen can offer a user interface to
      enable/disable automatic screen rotation as well as enabling/disabling
      the manual rotation based on the current user settings.
      
      Test Plan:
      Not yet tested, coded on the system which doesn't have an
      orientation sensor
      
      Reviewers: #kwin, #plasma, sebas, davidedmundson
      
      Subscribers: plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D8738
      e0b1a571
  17. 25 Dec, 2017 1 commit
  18. 24 Dec, 2017 1 commit
  19. 23 Dec, 2017 1 commit
    • Martin Flöser's avatar
      [libinput] Find screen for touch screen devices and calibrate accordingly · 68698b42
      Martin Flöser authored
      Summary:
      This change finds the screen for a touch screen device based on:
       * number available screens
       * output name defined on the touch screen device
       * internal screen
       * and physical size
      
      The id of the screen is stored in the Device allowing to adjust the
      touch points accordingly. This means instead of transferring to the
      combined display size the touch points are transferred into the output
      space and the position of the output is added. Thus in a multi screen
      system the touch points are properly mapped to the output.
      
      Furthermore the screen orientation is passed to the Device and a
      calibration matrix is set accordingly. Thus a transformed screen has the
      touch screen transformed accordingly.
      
      Please note that this only affects libinput on Wayland and not on X11!
      The x11 standalone platform needs to gain similar code.
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D8748
      68698b42
  20. 22 Dec, 2017 4 commits
  21. 21 Dec, 2017 1 commit
  22. 20 Dec, 2017 1 commit
  23. 19 Dec, 2017 1 commit
  24. 18 Dec, 2017 2 commits
    • Milian Wolff's avatar
      Fix build with CMake 3.10 · cd544890
      Milian Wolff authored
      Looks like a classic false-positive, but this makes the compile
      pass for me without making the code harder to read:
      
      AutoMoc error
      -------------
        "/ssd/milian/projects/kf5/src/kde/workspace/kwin/kcmkwin/kwinscripts/main.cpp"
      The file contains a K_PLUGIN_FACTORY macro, but does not include "main.moc"!
      Consider to
       - add #include "main.moc"
       - enable SKIP_AUTOMOC for this file
      
      So we just add the include and then get rid of the duplicate
      definition of the plugin factory and the problem is resolved.
      cd544890
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · efac8c35
      Script Kiddy authored
      In case of conflict in i18n, keep the version of the branch "ours"
      To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
      efac8c35