Author Topic: (Linux) Tool windows can't be dragged properly  (Read 1857 times)

timur

  • Senior Community Member
  • Posts: 205
  • Hero Points: 3
(Linux) Tool windows can't be dragged properly
« on: November 04, 2021, 08:25:39 PM »
I installed Slickedit on a new Ubuntu 21.10 system, and I'm seeing some weird behavior that only occurs with tool windows.  Neither the main window nor the windows of any other apps have this problem.  I also didn't have this problem on my other PC running Ubuntu 20.04.

To drag a window, I click and hold the left mouse button while moving the mouse.  Normally, the window moves in real time, so when I let go of the mouse button, the window is already there.

Instead, the tool windows don't actually move in real time any more.  I move the mouse pointer, but the window stays where it is.  When I release the mouse button, the window jumps to the new location.  However, I need to move the mouse very slowly in order for the window to actually move all the way.  If I move the mouse normally, the window doesn't quite move as much.  Usually it only gets half-way there.

I'm sure this is just some dumb setting in Ubuntu and/or Slickedit that I forgot about, but it's really annoying and Google searches don't help.

Update: this problem occurs with a fresh installation of v25 trial, so it's either (another) incompatibility between Slickedit and Linux, or it's some feature of Ubuntu / Gnome / Wayland that's causing problems.
« Last Edit: November 04, 2021, 09:01:21 PM by timur »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7089
  • Hero Points: 537
Re: (Linux) Tool windows can't be dragged properly
« Reply #1 on: November 05, 2021, 01:46:01 AM »
At login, choose "Ubuntu Xorg". The other selection I suspect is using Wayland which is giving SlickEdit some problems. We are still looking into this.

timur

  • Senior Community Member
  • Posts: 205
  • Hero Points: 3
Re: (Linux) Tool windows can't be dragged properly
« Reply #2 on: November 07, 2021, 01:07:03 AM »
Switching to X.org does fix the problem, thanks.  I guess I'll be using that from now on.  To be honest, I don't see any differences anyway.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7089
  • Hero Points: 537
Re: (Linux) Tool windows can't be dragged properly
« Reply #3 on: November 07, 2021, 01:00:38 PM »
We are still working on getting SlickEdit to run properly with the default setting. There are more problems than just tool window dragging.

patrickkox

  • Senior Community Member
  • Posts: 137
  • Hero Points: 6
  • Debian GNU/Linux user
Re: (Linux) Tool windows can't be dragged properly
« Reply #4 on: November 15, 2021, 12:22:44 PM »
Another problem with wayland is that is your environment is set to: QT_QPA_PLATFORM=wayland SlickEdit will fail to start giving the following error:
Quote
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.

fish: “vs” terminated by signal SIGABRT (Abort)

(This is on Debian GNU/Linux 11 (Bullseye) with the fish shell and the Qt5 version of SlickEdit pro 2021)
using QT_QPA_PLATFORM=xcb solves the problem.

As far as I can find online it's caused by SlickEdit using an embedded Qt which doesn't include qtwayland

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: (Linux) Tool windows can't be dragged properly
« Reply #5 on: November 16, 2021, 02:52:26 PM »
That is correct.  I think this is an additional bug with the launch script, where we need to force the xcb plugin in this case, because we're not shipping with Wayland support yet for the Qt5 build.

Still looking at the window dragging bugs.  We found the problem with not getting the mouse move events while dragging the tool windows, but still trying to track down a similar issue with the editor source windows.