gnome-screensaver r1452 - in trunk: . src
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-screensaver r1452 - in trunk: . src
- Date: Thu, 29 May 2008 17:03:19 +0000 (UTC)
Author: mccann
Date: Thu May 29 17:03:19 2008
New Revision: 1452
URL: http://svn.gnome.org/viewvc/gnome-screensaver?rev=1452&view=rev
Log:
2008-05-29 William Jon McCann <jmccann redhat com>
* src/gs-manager.c (gs_manager_create_windows_for_screen),
(gs_manager_create):
* src/gs-window-x11.c (update_geometry), (screen_size_changed),
(gs_window_move_resize_window):
Add some debug spew for window geometry changes.
Modified:
trunk/ChangeLog
trunk/src/gs-manager.c
trunk/src/gs-window-x11.c
Modified: trunk/src/gs-manager.c
==============================================================================
--- trunk/src/gs-manager.c (original)
+++ trunk/src/gs-manager.c Thu May 29 17:03:19 2008
@@ -1480,8 +1480,8 @@
}
static void
-gs_manager_create_window (GSManager *manager,
- GdkScreen *screen)
+gs_manager_create_windows_for_screen (GSManager *manager,
+ GdkScreen *screen)
{
GSWindow *window;
int n_monitors;
@@ -1523,7 +1523,8 @@
{
GdkDisplay *display;
GSList *l;
- int n_screens, i;
+ int n_screens;
+ int i;
g_return_if_fail (manager != NULL);
g_return_if_fail (GS_IS_MANAGER (manager));
@@ -1538,7 +1539,7 @@
g_slist_free (manager->priv->windows);
for (i = 0; i < n_screens; i++) {
- gs_manager_create_window (manager, gdk_display_get_screen (display, i));
+ gs_manager_create_windows_for_screen (manager, gdk_display_get_screen (display, i));
}
}
Modified: trunk/src/gs-window-x11.c
==============================================================================
--- trunk/src/gs-window-x11.c (original)
+++ trunk/src/gs-window-x11.c Thu May 29 17:03:19 2008
@@ -387,7 +387,7 @@
static GdkRegion *
get_outside_region (GSWindow *window)
{
- int i;
+ int i;
GdkRegion *region;
region = gdk_region_new ();
@@ -406,7 +406,8 @@
update_geometry (GSWindow *window)
{
GdkRectangle geometry;
- GdkRegion *outside_region, *monitor_region;
+ GdkRegion *outside_region;
+ GdkRegion *monitor_region;
outside_region = get_outside_region (window);
@@ -430,6 +431,7 @@
screen_size_changed (GdkScreen *screen,
GSWindow *window)
{
+ gs_debug ("Got screen size changed signal");
gtk_widget_queue_resize (GTK_WIDGET (window));
}
@@ -445,6 +447,13 @@
g_assert (GTK_WIDGET_REALIZED (widget));
+ gs_debug ("Move and/or resize window on monitor %d: x=%d y=%d w=%d h=%d",
+ window->priv->monitor,
+ window->priv->geometry.x,
+ window->priv->geometry.y,
+ window->priv->geometry.width,
+ window->priv->geometry.height);
+
if (move && resize) {
gdk_window_move_resize (widget->window,
window->priv->geometry.x,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]