Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swipe switching desktops does not wrap to other side of grid properly #504

Open
brooksvb opened this issue Jun 14, 2021 · 2 comments
Open

Comments

@brooksvb
Copy link

Describe the bug

Swipe gestures for directionally switching desktops in a grid does not properly wrap to the other side when going off the edge of the grid.

Expected behaviour

It should switch to the desktop on the other side of the grid, wrapping around as I have configured in my virtual desktop settings. It works as expected when using keyboard shortcuts for directionally switching desktops.

Actual behaviour

When using SWITCH_DESKTOP with directions left, right, up, down for swipe gestures, trying to go off of the grid makes the screen flash black but does not switch desktops. (The screen flashing black seems to be another bug, which happens on every desktop switch regardless, but not with key shortcuts)

Your environment

  • Version of Touchégg: Touchégg v2.0.10
  • Operating System: Manjaro
  • Desktop Environment: KDE
@brooksvb
Copy link
Author

brooksvb commented Sep 15, 2021

Update:
Now on version 2.0.11-1. I added the cyclic option to my config, but wrapping to the other side still does not work. However, I do notice that if I try to switch "into the edge" of the grid, I see the little circle with an arrow in it on that edge of the screen for a moment.

After any changes to the config, I restarted the touchegg service. I also completely restarted my machine just to make sure that wouldn't enable the new cyclic option.

Snippet of my config:

<gesture type="SWIPE" fingers="3" direction="UP">
      <action type="CHANGE_DESKTOP">
        <direction>up</direction>
        <cyclic>true</cyclic>
        <animate>true</animate>
        <animationPosition>auto</animationPosition>
      </action>
    </gesture>
    <gesture type="SWIPE" fingers="3" direction="DOWN">
      <action type="CHANGE_DESKTOP">
        <direction>down</direction>
        <cyclic>true</cyclic>
        <animate>true</animate>
        <animationPosition>auto</animationPosition>
      </action>
    </gesture>
    <gesture type="SWIPE" fingers="3" direction="LEFT">
      <action type="CHANGE_DESKTOP">
        <direction>left</direction>
        <cyclic>true</cyclic>
        <animate>true</animate>
        <animationPosition>auto</animationPosition>
      </action>
    </gesture>
    <gesture type="SWIPE" fingers="3" direction="RIGHT">
      <action type="CHANGE_DESKTOP">
        <direction>right</direction>
        <cyclic>true</cyclic>
        <animate>true</animate>
        <animationPosition>auto</animationPosition>
     </action>
    </gesture>

@NanzeRT
Copy link

NanzeRT commented Jun 27, 2022

There is a workaround by invoking shortcuts:

<gesture type="SWIPE" fingers="3" direction="UP">
  <action type="RUN_COMMAND">
    <animate>true</animate>
    <animation>CHANGE_DESKTOP_UP</animation>
    <command>qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut "Switch One Desktop Up"</command>
    <on>end</on>
  </action>
</gesture>

<gesture type="SWIPE" fingers="3" direction="DOWN">
  <action type="RUN_COMMAND">
    <animate>true</animate>
    <animation>CHANGE_DESKTOP_DOWN</animation>
    <command>qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut "Switch One Desktop Down"</command>
    <on>end</on>
  </action>
</gesture>

<gesture type="SWIPE" fingers="3" direction="LEFT">
  <action type="RUN_COMMAND">
    <animate>true</animate>
    <animation>CHANGE_DESKTOP_LEFT</animation>
    <command>qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut "Switch One Desktop to the Left"</command>
    <on>end</on>
  </action>
</gesture>

<gesture type="SWIPE" fingers="3" direction="RIGHT">
  <action type="RUN_COMMAND">
    <animate>true</animate>
    <animation>CHANGE_DESKTOP_RIGHT</animation>
    <command>qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut "Switch One Desktop to the Right"</command>
    <on>end</on>
  </action>
</gesture>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants