[mutter] window: Store tile mode as MetaTileMode
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window: Store tile mode as MetaTileMode
- Date: Thu, 8 Nov 2018 13:31:39 +0000 (UTC)
commit 5fc07fcc23030fb81c567ae22ee118faab4afa4c
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Oct 24 11:54:44 2018 +0200
window: Store tile mode as MetaTileMode
An unnecessary memory optimization, storing the tile mode as a 2 bit
unsigned integer, was used. While saving a few bytes, it made debugging
harder. Remove the useless byte packing.
src/core/window-private.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/core/window-private.h b/src/core/window-private.h
index 78aff9391..c88d1131e 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -215,7 +215,8 @@ struct _MetaWindow
guint minimize_after_placement : 1;
/* The current tile mode */
- guint tile_mode : 2;
+ MetaTileMode tile_mode;
+
/* The last "full" maximized/unmaximized state. We need to keep track of
* that to toggle between normal/tiled or maximized/tiled states. */
guint saved_maximize : 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]