1. 09 Jul, 2015 2 commits
    • Martin Flöser's avatar
      282321bf
    • Martin Flöser's avatar
      [wayland] Improve creation of KWayland::Server::PlasmaWindowInterface · 72635101
      Martin Flöser authored
      The creation of PlasmaWindowInterface is moved from WaylandServer into
      AbstractClient. This allows the sub classes to better control when to
      create/destroy the Client.
      
      For creation it's bound to becoming visible - that is Windows which are
      only created but never shown are not announced at all.
      
      For Client it's destroyed with the normal tear-down of a Client, for
      ShellClient it's destroyed on unmapped (which also means a new one
      will be created again in case of another mapping of the surface).
      
      As a side effect, this works around the problem that ShellClients do not
      yet get destroyed for QtWayland's menus (needs further investigation).
      72635101
  2. 07 Jul, 2015 12 commits
  3. 06 Jul, 2015 2 commits
  4. 02 Jul, 2015 2 commits
    • Martin Flöser's avatar
      [wayland] Add a plugin for kglobalaccel · 3041a7c3
      Martin Flöser authored
      The KGlobalAccelD which gets created by KWin needs a plugin for the
      platform specific parts. This change introduces such a plugin. It's
      linked against kwin so that it can integrate with the core.
      
      On enable the plugin registers itself in the InputRedirection and
      GlobalShortcutsManager checks the plugin whether a shortcut got
      triggered.
      
      As the loading of the plugin must happen after InputRedirection is
      fully created a dedicated init method is added to InputRedirection.
      
      REVIEW: 124187
      3041a7c3
    • Martin Flöser's avatar
      [wayland] Create a KGlobalAccelD during startup · 8461344c
      Martin Flöser authored
      We need to grab the DBusInterface before anything interacts with
      org.kde.kglobalaccel to prevent kglobalaccel5 from starting.
      8461344c
  5. 01 Jul, 2015 1 commit
  6. 29 Jun, 2015 6 commits
    • Nerdopolis Turfwalker's avatar
      Check whether it's platform xcb before calling QX11Info::display() · 924b66c4
      Nerdopolis Turfwalker authored
      Internally QX11Info::display() calls into QPA native interface and
      tries to resolve the nativeResourceForIntegration for "display".
      Unfortunately this key also exists in other QPA plugins, e.g. in
      QtWayland.
      
      Calling without a check on platform results on wayland qpa in
      wl_display* being casted into Display*.
      
      REVIEW: 124203
      924b66c4
    • Martin Flöser's avatar
      [backends/drm] Fix crash in cleanup of DrmOutput · 4c031158
      Martin Flöser authored
      During cleanup the KWayland::OutputInterface is already destroyed before
      we hit the cleanup code of DrmOutput. Thus guard with a QPointer to not
      delete twice.
      4c031158
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · 9af31e80
      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"
      9af31e80
    • Martin Flöser's avatar
      [wayland] Introduce automatic backend selection · 94827c74
      Martin Flöser authored
      If none of the backend specific command line options are passed, we
      try to autmatically determine the proper plugin.
      
      1. if DISPLAY is set -> x11 backend
      2. if WAYLAND_DISPLAY is set -> wayland backend
      3. if compiled with libhybris and ANDROID_ROOT is set -> hwcomposer backend
      4. if compiled with DRM -> drm backend
      5. if nothing selected yet, fallback to fbdev
      94827c74
    • Martin Flöser's avatar
      [wayland] Improve passing env variables to applications started by KWin · fa7b2fd0
      Martin Flöser authored
      If an env variable is set outside of KWin (e.g. QT_QPA_PLATFORM) we
      want KWin to pass the original env variable to the started process and
      not pass none instead because it's one of KWin's special changed
      variables.
      
      Thus we take the environment before we adjust it and pass that to the
      started processes with our own DISPLAY and WAYLAND_DISPLAY added.
      fa7b2fd0
    • Martin Flöser's avatar
      [wayland] Create PlasmaWindow as child of AbstractClient · 085c7781
      Martin Flöser authored
      Ensures that the PlasmaWindow gets destroyed together with the window.
      Note: when a ShellClient gets unmapped the PlasmaWindow does not yet
      get destroyed. It should probably get destroyed and recreated on next
      mapping.
      085c7781
  7. 28 Jun, 2015 1 commit
  8. 26 Jun, 2015 1 commit
  9. 25 Jun, 2015 3 commits
  10. 24 Jun, 2015 3 commits
  11. 23 Jun, 2015 1 commit
  12. 22 Jun, 2015 1 commit
  13. 20 Jun, 2015 1 commit
    • Martin Flöser's avatar
      [wayland] Export themed icon name to PlasmaWindow interface · 8b6fef45
      Martin Flöser authored
      If the icon doesn't have a name, we pass the generic xorg icon. Most
      likely our xwayland clients won't have a theme name, so giving them
      the xorg icon seems a good enough work around. If we would want to
      pass the real icon for xwayland clients we would need a way to
      serialize them which seems like quite some needless overhead for legacy
      applications. Can be considered for the future nevertheless.
      8b6fef45
  14. 19 Jun, 2015 4 commits