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:
Matthias Clasen 2013-08-13 18:24:37 -04:00
parent 1398f8ea4c
commit 35a4bba902

View File

@ -7179,6 +7179,13 @@ gtk_window_button_press_event (GtkWidget *widget,
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)
{