mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
server: Use the helper to reset the clip rect when the desktop size changes.
This commit is contained in:
parent
b7570b798e
commit
2101d4d6ad
Notes:
Alexandre Julliard
2023-06-07 22:53:29 +02:00
Approved-by: Huw Davies (@huw) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/wine/-/merge_requests/2981
3 changed files with 3 additions and 2 deletions
|
@ -450,7 +450,7 @@ static void get_message_defaults( struct msg_queue *queue, int *x, int *y, unsig
|
|||
}
|
||||
|
||||
/* set the cursor clip rectangle */
|
||||
static void set_clip_rectangle( struct desktop *desktop, const rectangle_t *rect, int send_clip_msg )
|
||||
void set_clip_rectangle( struct desktop *desktop, const rectangle_t *rect, int send_clip_msg )
|
||||
{
|
||||
rectangle_t top_rect;
|
||||
int x, y;
|
||||
|
|
|
@ -109,6 +109,7 @@ extern void queue_cleanup_window( struct thread *thread, user_handle_t win );
|
|||
extern int init_thread_queue( struct thread *thread );
|
||||
extern int attach_thread_input( struct thread *thread_from, struct thread *thread_to );
|
||||
extern void detach_thread_input( struct thread *thread_from );
|
||||
extern void set_clip_rectangle( struct desktop *desktop, const rectangle_t *rect, int send_clip_msg );
|
||||
extern void post_message( user_handle_t win, unsigned int message,
|
||||
lparam_t wparam, lparam_t lparam );
|
||||
extern void send_notify_message( user_handle_t win, unsigned int message,
|
||||
|
|
|
@ -1829,7 +1829,7 @@ static void set_window_pos( struct window *win, struct window *previous,
|
|||
}
|
||||
|
||||
/* reset cursor clip rectangle when the desktop changes size */
|
||||
if (win == win->desktop->top_window) win->desktop->cursor.clip = *window_rect;
|
||||
if (win == win->desktop->top_window) set_clip_rectangle( win->desktop, NULL, 1 );
|
||||
|
||||
/* if the window is not visible, everything is easy */
|
||||
if (!visible) return;
|
||||
|
|
Loading…
Reference in a new issue