1. 23 Sep, 2017 4 commits
  2. 22 Sep, 2017 4 commits
  3. 21 Sep, 2017 3 commits
  4. 20 Sep, 2017 3 commits
  5. 19 Sep, 2017 3 commits
    • Martin Flöser's avatar
      Support mapping QKeyEvent to xkb_keysym_t · a17c85a9
      Martin Flöser authored
      Summary:
      This is needed in virtual keyboard and also used KKeyServer so far. With
      this change it is moved to new API provided in Xkb. The new translation
      map is now also used for the direction from Qt::Key +
      Qt::KeyboardModifier to xkb_keysym_t.
      
      New implementation is supported by a new test case covering the same
      combinations as in the existing direction.
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D7356
      a17c85a9
    • Jesse Pullinen's avatar
      Fix TouchEvent::id() returning -1, fixes a crash · 0eba3f3c
      Jesse Pullinen authored
      Summary:
      Libinput returns -1 when calling libinput_event_touch_get_slot on an event
      from a single-touch touchscreen. The returned value is used in
      DecorationEventFilter to determine the touch which is acting on it. The value -1
      is used to signify that the decoration is not being acted on. Thus when
      releasing the touch, it checks whether it was being dragged, and as it thinks
      it isn't, it doesn't handle it and the decoration is still being dragged.
      Clicking on the decoration then crashes kwin.
      
      Test Plan: Move a window by dragging the decoration with a single-touch touchscreen.
      
      Reviewers: #kwin, graesslin
      
      Reviewed By: #kwin, graesslin
      
      Subscribers: graesslin, kwin, #kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D7854
      0eba3f3c
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · a5e523ca
      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"
      a5e523ca
  6. 18 Sep, 2017 3 commits
  7. 17 Sep, 2017 1 commit
  8. 16 Sep, 2017 3 commits
  9. 15 Sep, 2017 1 commit
  10. 14 Sep, 2017 2 commits
  11. 13 Sep, 2017 1 commit
  12. 12 Sep, 2017 6 commits
    • Martin Flöser's avatar
      Try fixing build failure on CI · a9270f42
      Martin Flöser authored
      No idea why the code compiles on my system. This change is based on the
      output on build.kde.org.
      
      CMakeFiles/testXRandRScreens.dir/__/plugins/platforms/x11/standalone/screens_xrandr.cpp.o:
      In function `KWin::XRandRScreens::event(xcb_generic_event_t*)':
      /home/jenkins/workspace/Plasma kwin kf5-qt5 SUSEQt5.9/plugins/platforms/x11/standalone/screens_xrandr.cpp:210:
      undefined reference to `KWin::Options::currentRefreshRate()'
      ...
      a9270f42
    • Heiko Becker's avatar
      CMake 3.1 is the actually required version · 10381b10
      Heiko Becker authored
      Summary:
      CXX_STANDARD is only available since 3.1.
      $ git show 913394af2: cmTarget: Add CXX_STANDARD and CXX_EXTENSION...
      $ git tag --contains 913394af2 | head -n: v3.1.0
      
      3.1 also has CMakePackageConfigHelpers (available since 3.0),
      allowing to drop ECMPackageConfigHelpers (it actually fixes a CMake
      warning when requiring >=3.0).
      
      Furthermore move cmake_minimum_required(VERSION 3.1 FATAL_ERROR) to
      the top of CMakeLists.txt like suggested by CMake's documentation.
      
      Test Plan: cmake .. & ninja
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D7784
      10381b10
    • Martin Flöser's avatar
      [effects] Support xcbConnectionChanged for support properties · 90e77a93
      Martin Flöser authored
      Summary:
      Several effects announce a support property atom on the root window. This
      change forwards the KWin::Application's signal that the xcbConnection
      changed to the EffectsHandler so that the effects can respond to it.
      
      All effects which announce a support property connect to this new signal
      and re-announce the property. In case the xcb connection died (future
      XWayland crashing case) it is set to XCB_ATOM_NONE by that. In case the
      xcb connection got created (future delayed XWayland startup) the atom is
      set to the proper value.
      
      In addition all usages of the support properties are guarded, so that no
      nonesense actions are performed if the support property is XCB_ATOM_NONE.
      
      Test Plan: Only compile tested as we don't have XFree KWin yet
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D7761
      90e77a93
    • Martin Flöser's avatar
      Move XRandR event filter into XRandRScreens · 4fa41165
      Martin Flöser authored
      Summary:
      The code in events.cpp was problematic as it was called in a Wayland
      session. So KWin changed outputs, this gets mirrored to XWayland and
      then KWin reacted on the XRandR event and might have even changed the
      refresh rate due to that - bad idea.
      
      This change moves the code into the already existing X11EventFilter for
      XRandR events in XRandRScreens.
      
      Test Plan: Run kwin_x11 in gdb on Xephyr, breakpoint in new code and triggered XRandR event
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D7654
      4fa41165
    • Martin Flöser's avatar
      Add virtual method to Scene to get the EGL/GLX extensions · 8015e4e8
      Martin Flöser authored
      Summary:
      We had a few places (e.g. DebugConsole, Platform) where the Scene was
      cased into a SceneOpenGL to access the backend and get the extensions.
      
      This change simplifies that by adding a virtual method to Scene directly
      which is implemented in SceneOpenGL and returns the backend's
      extensions.
      
      Thus the casts to SceneOpenGL are no longer required.
      
      Test Plan:
      Opened debug console to verify extensions are listed,
      triggered Outline to verify the sharing QPA context gets created.
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D7734
      8015e4e8
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · 23eaed2f
      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"
      23eaed2f
  13. 11 Sep, 2017 1 commit
  14. 10 Sep, 2017 2 commits
  15. 09 Sep, 2017 1 commit
  16. 08 Sep, 2017 1 commit
  17. 07 Sep, 2017 1 commit
    • Martin Flöser's avatar
      Make AbstractEglBackend a QObject · 01ddbe7d
      Martin Flöser authored
      Summary:
      Several of the subclasses are already derived from QObject.
      
      The main reason is that the class should be moved out of KWin core in
      order to move the OpenGL scene into a plugin. As Compositor calls into
      the AbstractEglBackend to unbind the wayland display this creates a
      problem which is easily solved by turning the AbstractEglBackend into a
      QObject and connect to the signal emitted by the Compositor.
      
      Test Plan: Compiles
      
      Reviewers: #kwin, #plasma
      
      Subscribers: plasma-devel, kwin
      
      Tags: #kwin
      
      Differential Revision: https://phabricator.kde.org/D7669
      01ddbe7d