nx-libs icon indicating copy to clipboard operation
nx-libs copied to clipboard

Can't resize windows by dragging

Open logological opened this issue 5 years ago • 16 comments

I use X2Go to run individual applications remotely. For as long as I can remember (seven or eight years, at least), I've never been able to resize these remote windows by dragging their edges with the mouse pointer. Whenever I try to do this, the window size increases by a few pixels at most and then stops. It used to be the case that after starting to drag six or seven times, the window could then be resized normally, though even this hasn't worked lately for me.

The server is running x2goserver-4.1.0.4 (Git commit aef470fe) and nx-libs 3.5.99.22. The client is running x2goclient-4.1.2.2 (Git commit 7933bad). The local desktop environment there is KDE Plasma with its default window manager (kwin?). Both client and server are running openSUSE Tumbleweed.

logological avatar Feb 06 '20 20:02 logological

I have done some tests. I seems like this is a problem consisting of two components. First this behaviour seems to be tied to kwin being active as local window manager. Second the application in question must be using qt (e.g. konsole, k3b).

uli42 avatar Feb 09 '20 16:02 uli42

Second the application in question must be using qt (e.g. konsole, k3b).

This is not the case for me. I can reproduce the problem with xfce4-terminal and claws-mail, neither of which use Qt.

logological avatar Feb 09 '20 16:02 logological

Ok, interesting. Well, I wrote "seems" above... Looks like I was wrong.

I have just found something more: I can try several times to resize and it finally works. Restarting kwin then sets the window back to the non-resizable state. I then must try several times again until it finally works. So this looks like kwin is "learning" something during the process.

uli42 avatar Feb 09 '20 18:02 uli42

with trinity's twin (a fork of the old kde3 kwin) this never happens; it just always works.

uli42 avatar Feb 20 '20 18:02 uli42

I've tried using xfwm4 instead of kwin (by running Plasma as usual, but with KDEWM=/usr/bin/xfwm4 in my .profile. Using this window manager, there is no problem resizing windows. So I guess the resizing problem is either a bug in kwin or an issue with how X2Go interacts with it.

logological avatar Mar 25 '20 12:03 logological

Some further info: Not all applications are affected by this resizing problem. I can reproduce it with, for example, Thunderbird, Konsole, xfce4-terminal, and Claws Mail, but not with xterm, xcalc, and glxgears.

logological avatar Mar 25 '20 12:03 logological

Yes, also with kwin3 it does not happen.

Unfortunately it is very difficult to debug this since I have not idea what kwin is doing (or expecting) there and the source code is not easily understandable. I have started lokking at this some weeks ago but due to the nature of WM communication it is neither easy to capture nor to interpret what is going on. In my special case I need to do that on my laptop while preserving a working environment at the same time...

I am thinking of asking the kwin developers but first I need some more details I can offer them...

Uli

On Wed, Mar 25, 2020 at 1:52 PM Tristan Miller [email protected] wrote:

Some further info: Not all applications are affected by this resizing problem. I can reproduce it with, for example, Thunderbird, Konsole, xfce4term, and Claws Mail, but not with xterm, xcalc, and glxgears.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.

uli42 avatar Mar 25 '20 13:03 uli42

Ah… while you were writing that comment I already raised an issue on the KDE Bugzilla: Bug 419227

logological avatar Mar 25 '20 13:03 logological

Ok, thank you!

On Wed, Mar 25, 2020 at 2:11 PM Tristan Miller [email protected] wrote:

Ah… while you were writing that comment I already raised an issue on the KDE Bugzilla: Bug 419227 https://bugs.kde.org/show_bug.cgi?id=419227

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/ArcticaProject/nx-libs/issues/910#issuecomment-603829734, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQHBZC7AW6OKQYIHA343QDRJH7GDANCNFSM4KRDQHXA .

uli42 avatar Mar 25 '20 13:03 uli42

In the irc chat someone mentioned that you actually CAN resize if you right click on the title bar, select "more actions/resize". Resizing then can be done using cursor keys. Afterwards resizing with the mouse also works.

Can anyone confirm?

uli42 avatar May 28 '20 13:05 uli42

@uli42 The resize trick doesn't work with Plasma 5.17.5 but troffasky@irc said it works on Plasma 5.18.5.

aki-k avatar May 28 '20 13:05 aki-k

I was able to reproduce the single application mode terminal resize problem on Plasma 5.17.5 client host with the following:

  1. open x2go single application mode terminal
  2. nohup kwin_x11 --replace & # to restart kwin_x11 on the client host
  3. try to resize the single application mode terminal window 5 times from the left edge. the window is resized on the 5th try

aki-k avatar Jun 06 '20 22:06 aki-k

Thanks for checking that out.

On Sun, Jun 7, 2020 at 12:00 AM aki-k [email protected] wrote:

I was able to reproduce the single application mode terminal resize problem on Plasma 5.17.5 client host with the following:

  1. open x2go single application mode terminal
  2. nohup kwin_x11 --replace & # to restart kwin_x11 on the client host
  3. try to resize the single application mode terminal window 5 times from the left edge. the window is resized on the 5th try

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ArcticaProject/nx-libs/issues/910#issuecomment-640123598, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQHBZCMTJV3IQKCPZSGV7DRVK4A3ANCNFSM4KRDQHXA .

uli42 avatar Jun 06 '20 23:06 uli42

@logological Can you please add a "ping" comment to your bugreport at KDE? Seems like noone has taken a look for more than 6 months...

uli42 avatar Oct 18 '20 19:10 uli42

Done.

logological avatar Oct 19 '20 08:10 logological

thx

On Mon, Oct 19, 2020 at 10:10 AM Tristan Miller [email protected] wrote:

Done https://bugs.kde.org/show_bug.cgi?id=419227#c3.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ArcticaProject/nx-libs/issues/910#issuecomment-711806426, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQHBZESJWLGE2HJ35TRZXDSLPX53ANCNFSM4KRDQHXA .

uli42 avatar Oct 19 '20 08:10 uli42