DevAlien / workspaces

Workspaces app for linux elementaryos gtk
GNU General Public License v3.0
79 stars 13 forks source link

Apps open in duplicate #47

Open jsf15 opened 4 years ago

jsf15 commented 4 years ago

Great app, I'm loving it! Thank you very much.

However, all the apps are opening in duplicate, Ubuntu 20.04.1 LTS.

DevAlien commented 4 years ago

do they open 2 times when you click the test button (when editing) or when you laucnh them through the launcher?

jsf15 commented 4 years ago

The test is fine. The problem is in the launcher.

DevAlien commented 4 years ago

Sorry I missed the reply. do you launch with mouse click or with the return key?

jsf15 commented 4 years ago

In both cases

michaljenicek commented 3 years ago

Hi, I'm having the same problem, my apps also launch twice, however for me it only happens when I open the workspace with Enter, when I click on it they open just once

matfantinel commented 3 years ago

I can confirm it only happens when using Enter to open the workspace. When clicking, it does not happen. However, I noticed that if I press Ctrl and then press Enter (to keep the window open), it does not happen either.

Maybe it's related to this part of the code? Perhaps GTK already interprets the Enter key as a click, and by explicitly firing the activation event again, it's opening things twice.

DevAlien commented 3 years ago

That's strange, it should not count as a click, I have to do some testing. sorry for the delays, I'm a bit busy right now

david-lindner commented 3 years ago

I have the exact same behavior as @matfantinel describes: everything opens twice when using Enter, but it works fine when clicking or using CTRL+Enter. I'm running Xubuntu 21.04 and installed from Flathub.

SrimalPriyanga commented 3 years ago

Productivity boost idea. Thank you I'm loving this app. Hope you will resolve this twice opening issue. It only happens with ENTER button as @michaljenicek mentioned above.