mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Make GtkHandleBox work on multiple displays
This commit is contained in:
parent
6aa6338578
commit
3dc395ad4e
@ -1079,6 +1079,7 @@ gtk_handle_box_button_press (GtkWidget *widget,
|
|||||||
gint root_x, root_y;
|
gint root_x, root_y;
|
||||||
gint width, height;
|
gint width, height;
|
||||||
|
|
||||||
|
gtk_invisible_set_screen (GTK_INVISIBLE (invisible), gtk_widget_get_screen (hb));
|
||||||
gdk_window_get_deskrelative_origin (hb->bin_window, &desk_x, &desk_y);
|
gdk_window_get_deskrelative_origin (hb->bin_window, &desk_x, &desk_y);
|
||||||
gdk_window_get_origin (hb->bin_window, &root_x, &root_y);
|
gdk_window_get_origin (hb->bin_window, &root_x, &root_y);
|
||||||
gdk_drawable_get_size (hb->bin_window, &width, &height);
|
gdk_drawable_get_size (hb->bin_window, &width, &height);
|
||||||
|
Loading…
Reference in New Issue
Block a user