mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
don't filter out prelight for unmaximize button. #83860
2002-09-03 Havoc Pennington <hp@pobox.com> * src/frames.c (meta_frames_update_prelit_control): don't filter out prelight for unmaximize button. #83860 (meta_frames_paint_to_drawable): handle unmaximize here as well
This commit is contained in:
parent
44cbcaa387
commit
a5c4eaa55c
@ -1,3 +1,9 @@
|
||||
2002-09-03 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/frames.c (meta_frames_update_prelit_control): don't filter
|
||||
out prelight for unmaximize button. #83860
|
||||
(meta_frames_paint_to_drawable): handle unmaximize here as well
|
||||
|
||||
2002-08-27 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/theme.c (meta_frame_layout_calc_geometry): always apply
|
||||
|
20
src/frames.c
20
src/frames.c
@ -1385,12 +1385,20 @@ meta_frames_update_prelit_control (MetaFrames *frames,
|
||||
frame->xwindow,
|
||||
cursor);
|
||||
|
||||
switch (control)
|
||||
{
|
||||
case META_FRAME_CONTROL_MENU:
|
||||
case META_FRAME_CONTROL_MINIMIZE:
|
||||
case META_FRAME_CONTROL_MAXIMIZE:
|
||||
case META_FRAME_CONTROL_DELETE:
|
||||
case META_FRAME_CONTROL_UNMAXIMIZE:
|
||||
/* leave control set */
|
||||
break;
|
||||
default:
|
||||
/* Only prelight buttons */
|
||||
if (control != META_FRAME_CONTROL_MENU &&
|
||||
control != META_FRAME_CONTROL_MINIMIZE &&
|
||||
control != META_FRAME_CONTROL_MAXIMIZE &&
|
||||
control != META_FRAME_CONTROL_DELETE)
|
||||
control = META_FRAME_CONTROL_NONE;
|
||||
break;
|
||||
}
|
||||
|
||||
if (control == frame->prelit_control)
|
||||
return;
|
||||
@ -1537,6 +1545,7 @@ meta_frames_paint_to_drawable (MetaFrames *frames,
|
||||
button_states[META_BUTTON_TYPE_MINIMIZE] = META_BUTTON_STATE_PRELIGHT;
|
||||
break;
|
||||
case META_FRAME_CONTROL_MAXIMIZE:
|
||||
case META_FRAME_CONTROL_UNMAXIMIZE:
|
||||
button_states[META_BUTTON_TYPE_MAXIMIZE] = META_BUTTON_STATE_PRELIGHT;
|
||||
break;
|
||||
case META_FRAME_CONTROL_DELETE:
|
||||
@ -1561,9 +1570,6 @@ meta_frames_paint_to_drawable (MetaFrames *frames,
|
||||
META_BUTTON_STATE_PRESSED;
|
||||
break;
|
||||
case META_GRAB_OP_CLICKING_MAXIMIZE:
|
||||
button_states[META_BUTTON_TYPE_MAXIMIZE] =
|
||||
META_BUTTON_STATE_PRESSED;
|
||||
break;
|
||||
case META_GRAB_OP_CLICKING_UNMAXIMIZE:
|
||||
button_states[META_BUTTON_TYPE_MAXIMIZE] =
|
||||
META_BUTTON_STATE_PRESSED;
|
||||
|
Loading…
Reference in New Issue
Block a user