app: Add WM debug output
This commit is contained in:
@ -79,6 +79,7 @@
|
|||||||
#include "gimpdisplayshell-transform.h"
|
#include "gimpdisplayshell-transform.h"
|
||||||
#include "gimpstatusbar.h"
|
#include "gimpstatusbar.h"
|
||||||
|
|
||||||
|
#include "gimp-log.h"
|
||||||
#include "gimp-intl.h"
|
#include "gimp-intl.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
@ -652,6 +653,11 @@ gimp_display_shell_window_state_event (GtkWidget *widget,
|
|||||||
|
|
||||||
fullscreen = gimp_display_shell_get_fullscreen (shell);
|
fullscreen = gimp_display_shell_get_fullscreen (shell);
|
||||||
|
|
||||||
|
GIMP_LOG (WM, "Display shell '%s' [%p] set fullscreen %s",
|
||||||
|
gtk_window_get_title (GTK_WINDOW (widget)),
|
||||||
|
widget,
|
||||||
|
fullscreen ? "TURE" : "FALSE");
|
||||||
|
|
||||||
group = gimp_ui_manager_get_action_group (shell->menubar_manager, "view");
|
group = gimp_ui_manager_get_action_group (shell->menubar_manager, "view");
|
||||||
gimp_action_group_set_action_active (group,
|
gimp_action_group_set_action_active (group,
|
||||||
"view-fullscreen", fullscreen);
|
"view-fullscreen", fullscreen);
|
||||||
@ -671,11 +677,20 @@ gimp_display_shell_window_state_event (GtkWidget *widget,
|
|||||||
gboolean iconified = (event->new_window_state &
|
gboolean iconified = (event->new_window_state &
|
||||||
GDK_WINDOW_STATE_ICONIFIED) != 0;
|
GDK_WINDOW_STATE_ICONIFIED) != 0;
|
||||||
|
|
||||||
|
GIMP_LOG (WM, "Display shell '%s' [%p] set %s",
|
||||||
|
gtk_window_get_title (GTK_WINDOW (widget)),
|
||||||
|
widget,
|
||||||
|
iconified ? "iconified" : "uniconified");
|
||||||
|
|
||||||
if (iconified)
|
if (iconified)
|
||||||
{
|
{
|
||||||
if (gimp_displays_get_num_visible (gimp) == 0)
|
if (gimp_displays_get_num_visible (gimp) == 0)
|
||||||
|
{
|
||||||
|
GIMP_LOG (WM, "No displays visible any longer");
|
||||||
|
|
||||||
gimp_dialog_factories_hide_with_display ();
|
gimp_dialog_factories_hide_with_display ();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_dialog_factories_show_with_display ();
|
gimp_dialog_factories_show_with_display ();
|
||||||
|
@ -1488,6 +1488,10 @@ gimp_dialog_factories_hide_foreach (gconstpointer key,
|
|||||||
visibility = GIMP_DIALOG_VISIBILITY_VISIBLE;
|
visibility = GIMP_DIALOG_VISIBILITY_VISIBLE;
|
||||||
|
|
||||||
gtk_widget_hide (widget);
|
gtk_widget_hide (widget);
|
||||||
|
|
||||||
|
GIMP_LOG (WM, "Hiding '%s' [%p]",
|
||||||
|
gtk_window_get_title (GTK_WINDOW (widget)),
|
||||||
|
widget);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1523,6 +1527,10 @@ gimp_dialog_factories_show_foreach (gconstpointer key,
|
|||||||
if (! GTK_WIDGET_VISIBLE (widget) &&
|
if (! GTK_WIDGET_VISIBLE (widget) &&
|
||||||
visibility == GIMP_DIALOG_VISIBILITY_VISIBLE)
|
visibility == GIMP_DIALOG_VISIBILITY_VISIBLE)
|
||||||
{
|
{
|
||||||
|
GIMP_LOG (WM, "Showing '%s' [%p]",
|
||||||
|
gtk_window_get_title (GTK_WINDOW (widget)),
|
||||||
|
widget);
|
||||||
|
|
||||||
/* Don't use gtk_window_present() here, we don't want the
|
/* Don't use gtk_window_present() here, we don't want the
|
||||||
* keyboard focus to move.
|
* keyboard focus to move.
|
||||||
*/
|
*/
|
||||||
|
@ -35,6 +35,8 @@
|
|||||||
#include "gimpmenufactory.h"
|
#include "gimpmenufactory.h"
|
||||||
#include "gimpuimanager.h"
|
#include "gimpuimanager.h"
|
||||||
|
|
||||||
|
#include "gimp-log.h"
|
||||||
|
|
||||||
|
|
||||||
static GObject * gimp_image_dock_constructor (GType type,
|
static GObject * gimp_image_dock_constructor (GType type,
|
||||||
guint n_params,
|
guint n_params,
|
||||||
@ -159,6 +161,11 @@ gimp_image_dock_display_changed (GimpContext *context,
|
|||||||
g_object_get (display, "shell", &parent, NULL);
|
g_object_get (display, "shell", &parent, NULL);
|
||||||
|
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (dock), parent);
|
gtk_window_set_transient_for (GTK_WINDOW (dock), parent);
|
||||||
|
GIMP_LOG (WM, "Setting dock '%s' [%p] transient for '%s' [%p]",
|
||||||
|
gtk_window_get_title (GTK_WINDOW (dock)),
|
||||||
|
dock,
|
||||||
|
gtk_window_get_title (parent),
|
||||||
|
parent);
|
||||||
|
|
||||||
if (parent)
|
if (parent)
|
||||||
g_object_unref (parent);
|
g_object_unref (parent);
|
||||||
@ -193,5 +200,8 @@ gimp_image_dock_notify_transient (GimpConfig *config,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (dock), NULL);
|
gtk_window_set_transient_for (GTK_WINDOW (dock), NULL);
|
||||||
|
GIMP_LOG (WM, "Setting dock '%s' [%p] transient for NULL",
|
||||||
|
gtk_window_get_title (GTK_WINDOW (dock)),
|
||||||
|
dock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user