[iagno] Don't track fullscreen.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Don't track fullscreen.
- Date: Mon, 2 Feb 2015 03:18:54 +0000 (UTC)
commit 19df24c28e86df4ac8a4661cafa68218564bbdd2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Feb 2 04:12:00 2015 +0100
Don't track fullscreen.
src/iagno.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/iagno.vala b/src/iagno.vala
index efb7b30..3f8bcfb 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -13,7 +13,7 @@ public class Iagno : Gtk.Application
{
/* Application settings */
private Settings settings;
- private bool is_fullscreen_or_tiled;
+ private bool is_tiled;
private bool is_maximized;
private int window_width;
private int window_height;
@@ -239,7 +239,7 @@ public class Iagno : Gtk.Application
private void size_allocate_cb (Gtk.Allocation allocation)
{
- if (is_maximized || is_fullscreen_or_tiled)
+ if (is_maximized || is_tiled)
return;
window_width = allocation.width;
window_height = allocation.height;
@@ -249,9 +249,9 @@ public class Iagno : Gtk.Application
{
if ((event.changed_mask & Gdk.WindowState.MAXIMIZED) != 0)
is_maximized = (event.new_window_state & Gdk.WindowState.MAXIMIZED) != 0;
- /* We don’t save these states, but track them for saving size allocation */
- if ((event.changed_mask & (Gdk.WindowState.FULLSCREEN | Gdk.WindowState.TILED)) != 0)
- is_fullscreen_or_tiled = (event.new_window_state & (Gdk.WindowState.FULLSCREEN |
Gdk.WindowState.TILED)) != 0;
+ /* We don’t save this state, but track it for saving size allocation */
+ if ((event.changed_mask & Gdk.WindowState.TILED) != 0)
+ is_tiled = (event.new_window_state & Gdk.WindowState.TILED) != 0;
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]