aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/mainwindow.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 079e8300..d4a82a94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-12
+
+ * src/mainwindow.c: main_window_window_state_cb(): added more debug
+ print.
+
2014-12-09
* src/prefs_filter.c: fixed a bug that reorder by DnD was not saved.
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 942cbfe7..c601b32e 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -3243,10 +3243,13 @@ static gboolean main_window_window_state_cb(GtkWidget *widget,
gboolean minimized = FALSE;
if ((event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED) != 0) {
- if ((event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) != 0)
+ if ((event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) != 0) {
+ debug_print("main_window_window_state_cb: maximized\n");
prefs_common.mainwin_maximized = TRUE;
- else
+ } else {
+ debug_print("main_window_window_state_cb: unmaximized\n");
prefs_common.mainwin_maximized = FALSE;
+ }
}
if ((event->changed_mask & GDK_WINDOW_STATE_ICONIFIED) != 0) {
if ((event->new_window_state & GDK_WINDOW_STATE_ICONIFIED) != 0) {