mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 01:31:13 +00:00
csd: Implement middle-click action for titlebar
The default middle-click action on the titlebar should be to lower the window. Implement that. https://bugzilla.gnome.org/show_bug.cgi?id=705809
This commit is contained in:
parent
1398f8ea4c
commit
35a4bba902
@ -7179,6 +7179,13 @@ gtk_window_button_press_event (GtkWidget *widget,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (event->button == GDK_BUTTON_MIDDLE)
|
||||||
|
{
|
||||||
|
if (region == GTK_WINDOW_REGION_TITLE)
|
||||||
|
{
|
||||||
|
gdk_window_lower (gtk_widget_get_window (GTK_WIDGET (window)));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (event->type == GDK_2BUTTON_PRESS)
|
else if (event->type == GDK_2BUTTON_PRESS)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user