aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorErico Nunes <ernunes@redhat.com>2023-03-20 17:08:55 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-05-28 13:08:25 +0400
commit2f31663ed4b5631b5e1c79f5cdd6463e55410eb8 (patch)
tree950619a0fa2261ddde3534041beccd6c7527f3f4 /migration
parent94400fa53f81c9f58ad88cf3f3e7ea89ec423d39 (diff)
ui/gtk: use widget size for cursor motion event
The gd_motion_event size has some calculations for the cursor position, which also take into account things like different size of the framebuffer compared to the window size. The use of window size makes things more difficult though, as at least in the case of Wayland includes the size of ui elements like a menu bar at the top of the window. This leads to a wrong position calculation by a few pixels. Fix it by using the size of the widget, which already returns the size of the actual space to render the framebuffer. Signed-off-by: Erico Nunes <ernunes@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Vivek Kasireddy <vivek.kasireddy@intel.com> Message-Id: <20230320160856.364319-1-ernunes@redhat.com>
Diffstat (limited to 'migration')
0 files changed, 0 insertions, 0 deletions