small reordering of code

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

	* src/window.c (recalc_window_features): small reordering of
	code

	* src/display.c (meta_spew_event): more spew for MapNotify,
	UnmapNotify

	* src/window.c (recalc_window_features): spew more stuff

	* src/display.c (meta_spew_event): spew override_redirect field of
	ConfigureNotify
This commit is contained in:
Havoc Pennington 2002-09-23 01:43:20 +00:00 committed by Havoc Pennington
parent a030448cde
commit 6ab198ac22
3 changed files with 63 additions and 21 deletions

View File

@ -1,3 +1,16 @@
2002-09-22 Havoc Pennington <hp@pobox.com>
* src/window.c (recalc_window_features): small reordering of
code
* src/display.c (meta_spew_event): more spew for MapNotify,
UnmapNotify
* src/window.c (recalc_window_features): spew more stuff
* src/display.c (meta_spew_event): spew override_redirect field of
ConfigureNotify
2002-09-20 Arvind Samptur <arvind.samputr@wipro.com> 2002-09-20 Arvind Samptur <arvind.samputr@wipro.com>
* src/metacity.schemas.in: added keybindings for * src/metacity.schemas.in: added keybindings for
moving windows between workspaces. moving windows between workspaces.

View File

@ -1923,9 +1923,17 @@ meta_spew_event (MetaDisplay *display,
break; break;
case UnmapNotify: case UnmapNotify:
name = "UnmapNotify"; name = "UnmapNotify";
extra = g_strdup_printf ("event: 0x%lx window: 0x%lx from_configure: %d",
event->xunmap.event,
event->xunmap.window,
event->xunmap.from_configure);
break; break;
case MapNotify: case MapNotify:
name = "MapNotify"; name = "MapNotify";
extra = g_strdup_printf ("event: 0x%lx window: 0x%lx override_redirect: %d",
event->xmap.event,
event->xmap.window,
event->xmap.override_redirect);
break; break;
case MapRequest: case MapRequest:
name = "MapRequest"; name = "MapRequest";
@ -1935,12 +1943,13 @@ meta_spew_event (MetaDisplay *display,
break; break;
case ConfigureNotify: case ConfigureNotify:
name = "ConfigureNotify"; name = "ConfigureNotify";
extra = g_strdup_printf ("x: %d y: %d w: %d h: %d above: 0x%lx", extra = g_strdup_printf ("x: %d y: %d w: %d h: %d above: 0x%lx override_redirect: %d",
event->xconfigure.x, event->xconfigure.x,
event->xconfigure.y, event->xconfigure.y,
event->xconfigure.width, event->xconfigure.width,
event->xconfigure.height, event->xconfigure.height,
event->xconfigure.above); event->xconfigure.above,
event->xconfigure.override_redirect);
break; break;
case ConfigureRequest: case ConfigureRequest:
name = "ConfigureRequest"; name = "ConfigureRequest";

View File

@ -5387,17 +5387,6 @@ recalc_window_features (MetaWindow *window)
window->has_fullscreen_func = FALSE; window->has_fullscreen_func = FALSE;
} }
/* We leave fullscreen windows decorated, just push the frame outside
* the screen. This avoids flickering to unparent them.
*/
if (window->fullscreen)
{
window->has_shade_func = FALSE;
window->has_move_func = FALSE;
window->has_resize_func = FALSE;
window->has_maximize_func = FALSE;
}
if (!window->has_resize_func) if (!window->has_resize_func)
{ {
window->has_maximize_func = FALSE; window->has_maximize_func = FALSE;
@ -5412,16 +5401,34 @@ recalc_window_features (MetaWindow *window)
; /* leave fullscreen available */ ; /* leave fullscreen available */
else else
window->has_fullscreen_func = FALSE; window->has_fullscreen_func = FALSE;
meta_topic (META_DEBUG_WINDOW_OPS,
"Window %s not resizable, maximizable = %d fullscreenable = %d min size %dx%d max size %dx%d\n",
window->desc, window->has_maximize_func, window->has_fullscreen_func,
window->size_hints.min_width,
window->size_hints.min_height,
window->size_hints.max_width,
window->size_hints.max_height);
} }
/* We leave fullscreen windows decorated, just push the frame outside
* the screen. This avoids flickering to unparent them.
*
* Note that setting has_resize_func = FALSE here must come after the
* above code that may disable fullscreen, because if the window
* is not resizable purely due to fullscreen, we don't want to
* disable fullscreen mode.
*/
if (window->fullscreen)
{
window->has_shade_func = FALSE;
window->has_move_func = FALSE;
window->has_resize_func = FALSE;
window->has_maximize_func = FALSE;
}
meta_topic (META_DEBUG_WINDOW_OPS,
"Window %s fullscreen = %d not resizable, maximizable = %d fullscreenable = %d min size %dx%d max size %dx%d\n",
window->desc,
window->fullscreen,
window->has_maximize_func, window->has_fullscreen_func,
window->size_hints.min_width,
window->size_hints.min_height,
window->size_hints.max_width,
window->size_hints.max_height);
/* no shading if not decorated */ /* no shading if not decorated */
if (!window->decorated || window->border_only) if (!window->decorated || window->border_only)
window->has_shade_func = FALSE; window->has_shade_func = FALSE;
@ -5457,6 +5464,19 @@ recalc_window_features (MetaWindow *window)
break; break;
} }
meta_topic (META_DEBUG_WINDOW_OPS,
"Window %s decorated = %d border_only = %d has_close = %d has_minimize = %d has_maximize = %d has_move = %d has_shade = %d skip_taskbar = %d skip_pager = %d\n",
window->desc,
window->decorated,
window->border_only,
window->has_close_func,
window->has_minimize_func,
window->has_maximize_func,
window->has_move_func,
window->has_shade_func,
window->skip_taskbar,
window->skip_pager);
/* FIXME: /* FIXME:
* Lame workaround for recalc_window_features * Lame workaround for recalc_window_features
* being used overzealously. The fix is to * being used overzealously. The fix is to