don't raise/focus the window if minimize/close are clicked, patch from

2002-06-09  Havoc Pennington  <hp@pobox.com>

	* src/frames.c (meta_frames_button_press_event): don't raise/focus
	the window if minimize/close are clicked, patch from Gaute
	Lindkvist #75460
This commit is contained in:
Havoc Pennington
2002-06-09 04:14:40 +00:00
committed by Havoc Pennington
parent b168954ed3
commit deed8016ed
3 changed files with 22 additions and 7 deletions

View File

@ -1005,7 +1005,9 @@ meta_frames_button_press_event (GtkWidget *widget,
if (control == META_FRAME_CONTROL_CLIENT_AREA)
return FALSE; /* not on the frame, just passed through from client */
if (event->button == 1)
if (event->button == 1 &&
!(control == META_FRAME_CONTROL_MINIMIZE ||
control == META_FRAME_CONTROL_DELETE))
{
meta_core_user_raise (gdk_display,
frame->xwindow);