summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-08-05 09:00:08 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-08-05 09:00:08 +0000
commitc6b4a6b9112b276bee9eb0994f592bc98c711d8a (patch)
tree2676ba3ee374845845e005d5bdbcc25ef81f30d8 /legacy
parent4080774625c7e4e636a2a5ea984787b554c6a690 (diff)
fix ecore-evas to not ignore maximized requests in x11.
SVN revision: 74883
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c
index c86cecdda8..6acc6f5fb8 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c
@@ -2758,6 +2758,24 @@ _ecore_evas_x_override_set(Ecore_Evas *ee, int on)
2758} 2758}
2759 2759
2760static void 2760static void
2761_ecore_evas_x_maximized_set(Ecore_Evas *ee, int on)
2762{
2763 if (ee->prop.maximized == on) return;
2764 ee->engine.x.state.maximized_h = 1;
2765 ee->engine.x.state.maximized_v = 1;
2766 ee->prop.maximized = on;
2767 if (ee->should_be_visible)
2768 {
2769 ecore_x_netwm_state_request_send(ee->prop.window, ee->engine.x.win_root,
2770 ECORE_X_WINDOW_STATE_MAXIMIZED_VERT, -1, on);
2771 ecore_x_netwm_state_request_send(ee->prop.window, ee->engine.x.win_root,
2772 ECORE_X_WINDOW_STATE_MAXIMIZED_HORZ, -1, on);
2773 }
2774 else
2775 _ecore_evas_x_state_update(ee);
2776}
2777
2778static void
2761_ecore_evas_x_fullscreen_set(Ecore_Evas *ee, int on) 2779_ecore_evas_x_fullscreen_set(Ecore_Evas *ee, int on)
2762{ 2780{
2763 if (ee->prop.fullscreen == on) return; 2781 if (ee->prop.fullscreen == on) return;
@@ -3072,7 +3090,7 @@ static Ecore_Evas_Engine_Func _ecore_x_engine_func =
3072 _ecore_evas_x_iconified_set, 3090 _ecore_evas_x_iconified_set,
3073 _ecore_evas_x_borderless_set, 3091 _ecore_evas_x_borderless_set,
3074 _ecore_evas_x_override_set, 3092 _ecore_evas_x_override_set,
3075 NULL, 3093 _ecore_evas_x_maximized_set,
3076 _ecore_evas_x_fullscreen_set, 3094 _ecore_evas_x_fullscreen_set,
3077 _ecore_evas_x_avoid_damage_set, 3095 _ecore_evas_x_avoid_damage_set,
3078 _ecore_evas_x_withdrawn_set, 3096 _ecore_evas_x_withdrawn_set,