mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
new function
2001-09-16 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_lower): new function * configure.in: bump version to 2.3.8 * src/display.c (event_callback): raise dock on enter notify, lower it on leave notify (need to refine this behavior) * src/stack.c (compute_layer): experiment with putting the panel in the normal layer, and raising it on mouseover
This commit is contained in:
parent
b09a781a80
commit
7be4c63ee4
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
||||
2001-09-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/window.c (meta_window_lower): new function
|
||||
|
||||
* configure.in: bump version to 2.3.8
|
||||
|
||||
* src/display.c (event_callback): raise dock on enter notify,
|
||||
lower it on leave notify (need to refine this behavior)
|
||||
|
||||
* src/stack.c (compute_layer): experiment with putting the panel
|
||||
in the normal layer, and raising it on mouseover
|
||||
|
||||
2001-09-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/window.c: add support for a mini icon in the titlebar
|
||||
|
11
configure.in
11
configure.in
@ -2,7 +2,7 @@ AC_INIT(src/display.c)
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
AM_INIT_AUTOMAKE(metacity, 2.3.5)
|
||||
AM_INIT_AUTOMAKE(metacity, 2.3.8)
|
||||
|
||||
GETTEXT_PACKAGE=metacity
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
@ -64,12 +64,6 @@ fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_SM, test "$found_sm" = "true")
|
||||
|
||||
MSM_CFLAGS=$METACITY_CFLAGS
|
||||
MSM_LIBS=$METACITY_LIBS
|
||||
|
||||
AC_SUBST(MSM_CFLAGS)
|
||||
AC_SUBST(MSM_LIBS)
|
||||
|
||||
HOST_ALIAS=$host_alias
|
||||
AC_SUBST(HOST_ALIAS)
|
||||
|
||||
@ -77,7 +71,4 @@ AC_OUTPUT([
|
||||
Makefile
|
||||
src/Makefile
|
||||
src/wm-tester/Makefile
|
||||
src/msm/Makefile
|
||||
])
|
||||
|
||||
|
||||
|
@ -1,11 +1,5 @@
|
||||
|
||||
if HAVE_SM
|
||||
SM_SUBDIRS=msm
|
||||
else
|
||||
SM_SUBDIRS=
|
||||
endif
|
||||
|
||||
SUBDIRS=wm-tester $(SM_SUBDIRS)
|
||||
SUBDIRS=wm-tester
|
||||
|
||||
INCLUDES=@METACITY_CFLAGS@ -DMETACITY_LIBEXECDIR=\"$(libexecdir)\" -DHOST_ALIAS=\"@HOST_ALIAS@\"
|
||||
|
||||
|
@ -741,9 +741,18 @@ event_callback (XEvent *event,
|
||||
case EnterNotify:
|
||||
/* do this even if window->has_focus to avoid races */
|
||||
if (window && event->xany.serial != display->last_ignored_unmap_serial)
|
||||
meta_window_focus (window, event->xcrossing.time);
|
||||
{
|
||||
meta_window_focus (window, event->xcrossing.time);
|
||||
if (window->type == META_WINDOW_DOCK)
|
||||
meta_window_raise (window);
|
||||
}
|
||||
break;
|
||||
case LeaveNotify:
|
||||
if (window)
|
||||
{
|
||||
if (window->type == META_WINDOW_DOCK)
|
||||
meta_window_lower (window);
|
||||
}
|
||||
break;
|
||||
case FocusIn:
|
||||
case FocusOut:
|
||||
|
@ -259,7 +259,8 @@ compute_layer (MetaWindow *window)
|
||||
break;
|
||||
|
||||
case META_WINDOW_DOCK:
|
||||
window->layer = META_LAYER_DOCK;
|
||||
/* still experimenting here */
|
||||
window->layer = META_LAYER_NORMAL;
|
||||
break;
|
||||
|
||||
case META_WINDOW_FULLSCREEN:
|
||||
|
@ -2039,6 +2039,14 @@ meta_window_raise (MetaWindow *window)
|
||||
meta_stack_raise (window->screen->stack, window);
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_lower (MetaWindow *window)
|
||||
{
|
||||
meta_verbose ("Lowering window %s\n", window->desc);
|
||||
|
||||
meta_stack_lower (window->screen->stack, window);
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_send_icccm_message (MetaWindow *window,
|
||||
Atom atom,
|
||||
|
@ -299,6 +299,7 @@ void meta_window_delete (MetaWindow *window,
|
||||
void meta_window_focus (MetaWindow *window,
|
||||
Time timestamp);
|
||||
void meta_window_raise (MetaWindow *window);
|
||||
void meta_window_lower (MetaWindow *window);
|
||||
|
||||
|
||||
/* Sends a client message */
|
||||
|
Loading…
Reference in New Issue
Block a user