mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
debug enhancements
This commit is contained in:
parent
3da0b1c7d9
commit
4eb8a93c83
@ -12,6 +12,8 @@ if test -z "$SCREENS"; then
|
|||||||
SCREENS=1
|
SCREENS=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
MAX_SCREEN=`echo $SCREENS-1 | bc`
|
||||||
|
|
||||||
if test "$DEBUG" = none; then
|
if test "$DEBUG" = none; then
|
||||||
DEBUG=
|
DEBUG=
|
||||||
elif test -z "$DEBUG"; then
|
elif test -z "$DEBUG"; then
|
||||||
@ -56,7 +58,7 @@ if test -z "$ONLY_WM"; then
|
|||||||
|
|
||||||
echo "Launching clients"
|
echo "Launching clients"
|
||||||
if test -n "$TEST_CLIENT"; then
|
if test -n "$TEST_CLIENT"; then
|
||||||
for I in `seq 0 $SCREENS`; do
|
for I in `seq 0 $MAX_SCREEN`; do
|
||||||
DISPLAY=$CLIENT_DISPLAY.$I $TEST_CLIENT &
|
DISPLAY=$CLIENT_DISPLAY.$I $TEST_CLIENT &
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@ -81,7 +83,7 @@ if test -z "$ONLY_WM"; then
|
|||||||
|
|
||||||
usleep 50000
|
usleep 50000
|
||||||
|
|
||||||
for I in `seq 0 $SCREENS`; do
|
for I in `seq 0 $MAX_SCREEN`; do
|
||||||
DISPLAY=$CLIENT_DISPLAY.$I xsetroot -solid royalblue3
|
DISPLAY=$CLIENT_DISPLAY.$I xsetroot -solid royalblue3
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -408,6 +408,7 @@ ensure_above (MetaWindow *above,
|
|||||||
{
|
{
|
||||||
/* move above to below->stack_position bumping below down the stack */
|
/* move above to below->stack_position bumping below down the stack */
|
||||||
meta_window_set_stack_position (above, below->stack_position);
|
meta_window_set_stack_position (above, below->stack_position);
|
||||||
|
g_assert (below->stack_position + 1 == above->stack_position);
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_topic (META_DEBUG_STACK, "Above pos %d > below pos %d\n",
|
meta_topic (META_DEBUG_STACK, "Above pos %d > below pos %d\n",
|
||||||
|
@ -225,6 +225,7 @@ make_dialog (GtkWidget *parent,
|
|||||||
int depth)
|
int depth)
|
||||||
{
|
{
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
|
char *str;
|
||||||
|
|
||||||
dialog = gtk_message_dialog_new (GTK_WINDOW (parent),
|
dialog = gtk_message_dialog_new (GTK_WINDOW (parent),
|
||||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||||
@ -233,6 +234,10 @@ make_dialog (GtkWidget *parent,
|
|||||||
"Here is a dialog %d",
|
"Here is a dialog %d",
|
||||||
depth);
|
depth);
|
||||||
|
|
||||||
|
str = g_strdup_printf ("%d dialog", depth);
|
||||||
|
gtk_window_set_title (GTK_WINDOW (dialog), str);
|
||||||
|
g_free (str);
|
||||||
|
|
||||||
gtk_dialog_add_button (GTK_DIALOG (dialog),
|
gtk_dialog_add_button (GTK_DIALOG (dialog),
|
||||||
"Open child dialog",
|
"Open child dialog",
|
||||||
GTK_RESPONSE_ACCEPT);
|
GTK_RESPONSE_ACCEPT);
|
||||||
|
Loading…
Reference in New Issue
Block a user