mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-25 21:57:00 +00:00
Fix a -Wshadow warning
This commit is contained in:
parent
d9009388c8
commit
c8c59a2139
|
@ -668,15 +668,15 @@ Wayland_PopupWatch(void *data, SDL_Event *event)
|
||||||
{
|
{
|
||||||
if (event->type == SDL_MOUSEMOTION) {
|
if (event->type == SDL_MOUSEMOTION) {
|
||||||
SDL_Window *window = (SDL_Window *) data;
|
SDL_Window *window = (SDL_Window *) data;
|
||||||
SDL_WindowData *data = window->driverdata;
|
SDL_WindowData *wind = window->driverdata;
|
||||||
|
|
||||||
/* Coordinates might be relative to the popup, which we don't want */
|
/* Coordinates might be relative to the popup, which we don't want */
|
||||||
if (event->motion.windowID == data->shell_surface.xdg.roleobj.popup.parentID) {
|
if (event->motion.windowID == wind->shell_surface.xdg.roleobj.popup.parentID) {
|
||||||
xdg_positioner_set_offset(data->shell_surface.xdg.roleobj.popup.positioner,
|
xdg_positioner_set_offset(wind->shell_surface.xdg.roleobj.popup.positioner,
|
||||||
event->motion.x + TOOLTIP_CURSOR_OFFSET,
|
event->motion.x + TOOLTIP_CURSOR_OFFSET,
|
||||||
event->motion.y + TOOLTIP_CURSOR_OFFSET);
|
event->motion.y + TOOLTIP_CURSOR_OFFSET);
|
||||||
xdg_popup_reposition(data->shell_surface.xdg.roleobj.popup.popup,
|
xdg_popup_reposition(wind->shell_surface.xdg.roleobj.popup.popup,
|
||||||
data->shell_surface.xdg.roleobj.popup.positioner,
|
wind->shell_surface.xdg.roleobj.popup.positioner,
|
||||||
0);
|
0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue