summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-11-18 12:56:12 -0500
committerChris Michael <cp.michael@samsung.com>2015-11-18 12:56:12 -0500
commit2ebef8010e51fd2dd6a38f30dac42debc20a1e80 (patch)
treea2df42b0fe3a98732981c18a2ecb22829494530c /src/lib/ecore_wayland
parent4534c4aec3aa518b5723b483694c78a30a07ee46 (diff)
ecore-wayland: Reduce overhead for maximize/fullscreen set functions
This patch just gets the state flags directly from the window rather than calling "get" functions to return the same parameter. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index 95ff881fa0..982dfd52e4 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -455,10 +455,9 @@ ecore_wl_window_maximized_set(Ecore_Wl_Window *win, Eina_Bool maximized)
455 LOGFN(__FILE__, __LINE__, __FUNCTION__); 455 LOGFN(__FILE__, __LINE__, __FUNCTION__);
456 456
457 EINA_SAFETY_ON_NULL_RETURN(win); 457 EINA_SAFETY_ON_NULL_RETURN(win);
458 prev = ecore_wl_window_maximized_get(win);
459 458
459 prev = win->maximized;
460 maximized = !!maximized; 460 maximized = !!maximized;
461
462 if (prev == maximized) return; 461 if (prev == maximized) return;
463 462
464 if (maximized) 463 if (maximized)
@@ -499,11 +498,10 @@ ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen)
499 498
500 EINA_SAFETY_ON_NULL_RETURN(win); 499 EINA_SAFETY_ON_NULL_RETURN(win);
501 500
502 prev = ecore_wl_window_fullscreen_get(win); 501 prev = win->fullscreen;
503
504 fullscreen = !!fullscreen; 502 fullscreen = !!fullscreen;
505
506 if (prev == fullscreen) return; 503 if (prev == fullscreen) return;
504
507 if (fullscreen) 505 if (fullscreen)
508 { 506 {
509 win->type = ECORE_WL_WINDOW_TYPE_FULLSCREEN; 507 win->type = ECORE_WL_WINDOW_TYPE_FULLSCREEN;