-
-
Notifications
You must be signed in to change notification settings - Fork 168
Description
Describe the bug
If I decide to stop the x11vnc server while I'm dragging/resizing a window through keyboard shortcuts, I'm not able to restart said server.
When I try to restart it, it just hangs at:
18/11/2024 22:47:49 passing arg to libvncserver: -listen
18/11/2024 22:47:49 passing arg to libvncserver: localhost
18/11/2024 22:47:49 -usepw: found *OMITTED*
18/11/2024 22:47:49 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 289967
I'm using IceWM 3.6.0 (the actual version doesn't matter) on Debian Trixie (testing), its shortcut to move/resize windows are ALT+F7 and ALT+F8.
Please note that I'm not sure this is related to x11vnc itself, as I was able to reproduce this issue with other programs as well (xdotool, icesh).
Unfortunately I'm not familiar with X11's architecture, so I'm not able to say what's causing it.
While when being phisically in the vicinity of the server, it is simply a matter of "canceling the move/resizing" by pressing ESC/Enter, this becomes extremely problematic when connecting from the outside, since there's no way to "cancel" (even xdotool hangs).
To Reproduce
As far as I noted, there's an easy way to test this on the server itself, there's no need for an external connection:
- Login with IceWM as Desktop Environment/Window Manager;
- Switch to a TTY, perform the login;
- Start x11vnc from the TTY (foreground mode);
- Go back to the desktop, open a window and focus on it;
- Press Alt+F7/Alt+F8 to start moving / sizing it;
- Go back to the TTY and stop x11vnc with CTRL-C;
- Re-run it again and observe it hanging;
Expected Behavior
When I decide to re-run x11vnc, it should not hang, it should run as normal and I should be able to go back to the VNC session, in order to cancel the window moving/sizing.
Screenshots
N/A
Desktop
- OS and version: GNU/Linux Debian Trixie (testing)
- Xorg version used: 21.1.14
- Wayland version used: N/A
Additional context
As already said, I'm not totally sure this is a bug with x11vnc, unfortunately, since other tools seem to hang to the same situation.
I'd like some help in order to correctly diagnose the problem and solve it, since it is very annoying.