Public bug reported:
XWarpPointer doesn't work in GNOME 46(regression from 42)
Affected version
* Ubuntu 24.04.1 GNOME X11 arm64 vm in UTM(via QEMU) on Apple Silicon M3
Max(macOS 14.6.1)
* GNOME 46.2
* Xorg
Bug summary
XWarpPointer doesn't work
Steps to reproduce
Example code:
{code}
#include <stdio.h>
#include <unistd.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
int main(int argc, char *argv[]){
//Get system window
Display *dpy;
Window root_window;
int x,y;
dpy = XOpenDisplay(0);
root_window = XRootWindow(dpy, 0);
XSelectInput(dpy, root_window, KeyReleaseMask);
for (x=0,y=0; y<768; x+=100,y+=100) {
sleep(1);
printf("XWarpPointer(): x=%5d, y=%5d\n", x, y);
XWarpPointer(dpy, None, root_window, 0, 0, 0, 0, x, y);
XFlush(dpy);
//XSync(dpy, False); <-- no difference
}
return 0;
}
{code}
* Compile it, "gcc $(pkg-config x11 --cflags) main.c -o test $(pkg-config x11
--libs)"
* Run it
The pointer is not moving.
Which is different with my Ubuntu 22.04 GNOME X11(42.9)
The code is from
https://lists.freedesktop.org/archives/xorg/2013-January/055324.html .
We (Qt Project) is planning to use Ubuntu 24.04 X11 in our CI to replace the
current Ubuntu 22.04 X11. And we have Ubuntu 24.04 X11 x64 in our CI currently,
which has same situation like my local vm.
See also
https://bugreports.qt.io/browse/QTQAINFRA-6322 Add Ubuntu 24.04 x64 to Qt 6.9
(dev)
https://bugreports.qt.io/browse/QTBUG-129567
tst_QWidget_window::tst_dnd_events() timeout on Ubuntu 24.04 GNOME X11
https://gitlab.gnome.org/GNOME/mutter/-/issues/3736 XWarpPointer doesn't work
in GNOME 46(regression from 42)
** Affects: xorg (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/2084090
Title:
XWarpPointer doesn't work on Ubuntu 24.04 GNOME X11
Status in xorg package in Ubuntu:
New
Bug description:
XWarpPointer doesn't work in GNOME 46(regression from 42)
Affected version
* Ubuntu 24.04.1 GNOME X11 arm64 vm in UTM(via QEMU) on Apple Silicon M3
Max(macOS 14.6.1)
* GNOME 46.2
* Xorg
Bug summary
XWarpPointer doesn't work
Steps to reproduce
Example code:
{code}
#include <stdio.h>
#include <unistd.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
int main(int argc, char *argv[]){
//Get system window
Display *dpy;
Window root_window;
int x,y;
dpy = XOpenDisplay(0);
root_window = XRootWindow(dpy, 0);
XSelectInput(dpy, root_window, KeyReleaseMask);
for (x=0,y=0; y<768; x+=100,y+=100) {
sleep(1);
printf("XWarpPointer(): x=%5d, y=%5d\n", x, y);
XWarpPointer(dpy, None, root_window, 0, 0, 0, 0, x, y);
XFlush(dpy);
//XSync(dpy, False); <-- no difference
}
return 0;
}
{code}
* Compile it, "gcc $(pkg-config x11 --cflags) main.c -o test $(pkg-config x11
--libs)"
* Run it
The pointer is not moving.
Which is different with my Ubuntu 22.04 GNOME X11(42.9)
The code is from
https://lists.freedesktop.org/archives/xorg/2013-January/055324.html .
We (Qt Project) is planning to use Ubuntu 24.04 X11 in our CI to replace the
current Ubuntu 22.04 X11. And we have Ubuntu 24.04 X11 x64 in our CI currently,
which has same situation like my local vm.
See also
https://bugreports.qt.io/browse/QTQAINFRA-6322 Add Ubuntu 24.04 x64 to Qt 6.9
(dev)
https://bugreports.qt.io/browse/QTBUG-129567
tst_QWidget_window::tst_dnd_events() timeout on Ubuntu 24.04 GNOME X11
https://gitlab.gnome.org/GNOME/mutter/-/issues/3736 XWarpPointer doesn't work
in GNOME 46(regression from 42)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/2084090/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp