*f = get_frame ();
*bar_window = Qnil;
*part = scroll_bar_above_handle;
- SELECTED_FRAME ()->mouse_moved = 0;
+ (*f)->mouse_moved = 0;
XSETINT (*x, movement_pos.X);
XSETINT (*y, movement_pos.Y);
/* If we're in the same place, ignore it. */
if (x != movement_pos.X || y != movement_pos.Y)
{
- SELECTED_FRAME ()->mouse_moved = 1;
+ struct frame *f = get_frame ();
+ f->mouse_moved = 1;
movement_pos.X = x;
movement_pos.Y = y;
movement_time = GetTickCount ();
int i;
/* Mouse didn't move unless MOUSE_MOVED says it did. */
- SELECTED_FRAME ()->mouse_moved = 0;
+ struct frame *f = get_frame ();
+ f->mouse_moved = 0;
switch (flags)
{
case MOUSE_MOVED:
{
- struct frame *f = get_frame ();
Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f);
int mx = event->dwMousePosition.X, my = event->dwMousePosition.Y;
case MOUSE_WHEELED:
case MOUSE_HWHEELED:
{
- struct frame *f = get_frame ();
/* Mouse positions in console wheel events are reported to
ReadConsoleInput relative to the display's top-left
corner(!), not relative to the origin of the console screen
int x = event->dwMousePosition.X;
int y = event->dwMousePosition.Y;
- struct frame *f = get_frame ();
- emacs_ev->arg = tty_handle_tab_bar_click (f, x, y, (button_state & mask) != 0,
+ emacs_ev->arg = tty_handle_tab_bar_click (f, x, y,
+ (button_state & mask) != 0,
emacs_ev);
emacs_ev->modifiers |= ((button_state & mask)