Bug 419227 - Can't resize windows (often but not always those run over NX (X2Go))
Summary: Can't resize windows (often but not always those run over NX (X2Go))
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-25 13:10 UTC by Tristan Miller
Modified: 2023-06-20 19:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
vlad.zahorodnii: Wayland-
vlad.zahorodnii: X11+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Miller 2020-03-25 13:10:04 UTC
SUMMARY:

It's not possible to drag-resize windows from most applications run over NX <https://github.com/ArcticaProject/nx-libs>, the X11 protocol compression suite used by remote-access tools like X2Go.  The problem seems to be specific to kwin; when using a different window manager there is no problem resizing windows.  Resizing windows by maximizing or restoring them still works.


STEPS TO REPRODUCE:

1. Use nxagent to launch a nested X Server on the local machine:

$ nxagent -ac :55 -R &

2. Launch an application on the display specified in the previous step:

$ DISPLAY=:55 konsole &

3. Place the mouse pointer over one of the edges of the application window and drag.


OBSERVED RESULT:

4. The window edge expands by a few pixels and then stops.


EXPECTED RESULT:

4. The window edge should expand as far as the mouse pointer is dragged.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
nx-libs version: 3.5.99.22

ADDITIONAL INFORMATION

* The problem occurs with kwin but not with twin (Trinity's fork of kwin) or xfwm4

* The problem does not occur with every application.  I can verify that it is reproducible with Thunderbird, Konsole, xfce4-terminal, and Claws Mail, but not with xterm, xcalc, and glxgears.

* The issue has also been reported on the nx-libs issue tracker: <https://github.com/ArcticaProject/nx-libs/issues/910>

* Perhaps this issue is somehow related to Bug 83805, which I filed here about 16 years ago?
Comment 1 Ulrich Sibiller 2020-03-25 13:37:12 UTC
It is worth adding that after some tries it suddenly works for every further attempt of the same window. Restarting kwin (kwin --replace) resets the state and your need to resize several times again until it works.
Comment 2 Tristan Miller 2020-03-25 13:49:55 UTC
(In reply to Ulrich Sibiller from comment #1)
> It is worth adding that after some tries it suddenly works for every further
> attempt of the same window.

This formerly (i.e., many months or years ago) worked for me, but it doesn't any more.

> Restarting kwin (kwin --replace) resets the
> state and your need to resize several times again until it works.

I have never tried this until now, but this one doesn't work for me either.
Comment 3 Tristan Miller 2020-10-19 08:09:23 UTC
The problem is still reproducible with kwin 5.19.5.  Would any kwin developer like to take a look at this in the near future?  I gather that Ulrich (one of the nx-libs developers) is eager to collaborate on a solution, and I'm also available to test patches.
Comment 4 Vlad Zahorodnii 2020-10-26 08:46:54 UTC
We have a quite overwhelming number of bug reports. It may take some time until someone starts actually looking into this issue.
Comment 5 Ulrich Sibiller 2020-10-26 10:42:48 UTC
Can we help somehow to speed up the process?

On Mon, Oct 26, 2020 at 9:46 AM Vlad Zahorodnii
<bugzilla_noreply@kde.org> wrote:
>
> https://bugs.kde.org/show_bug.cgi?id=419227
>
> --- Comment #4 from Vlad Zahorodnii <vlad.zahorodnii@kde.org> ---
> We have a quite overwhelming number of bug reports. It may take some time until
> someone starts actually looking into this issue.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 6 Tristan Miller 2021-08-11 10:33:04 UTC
On further testing, the problem sometimes happens with windows of locally running applications, when X2Go isn't even running.  (For example, I'm currently experiencing the bug with a local konsole window.)  So this is likely a kwin problem that has nothing to do with X2Go; it's just that the problem is more consistently reproducible with windows running over X2Go.
Comment 7 Erik 2022-01-31 18:42:16 UTC
Hi, I can reproduce this under

KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
nx-libs version: 3.5.99.26

Is there any update about this issue?