summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hughart <mekius@gmail.com>2014-07-03 11:32:16 -0500
committerNick Hughart <mekius@gmail.com>2014-07-03 11:32:16 -0500
commit7215665e71f855918a464a2fe4e30decd4f920db (patch)
treed061f6d2c6f56f888b646cf5a7d808600331f0d9
parent0052c9e85614275bd270dc1472689fb621682147 (diff)
Restore transparent background
- Thanks to some hints from the python polkit agent, I found that using the dock window type and setting the size of the window to match the screen allows the transparent background to work properly.
-rw-r--r--src/bin/gui.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/gui.c b/src/bin/gui.c
index 9e92ed7..1f4d739 100644
--- a/src/bin/gui.c
+++ b/src/bin/gui.c
@@ -27,16 +27,18 @@ Eina_Bool gui_init()
27 Evas_Object *o; 27 Evas_Object *o;
28 Evas_Coord w,h; 28 Evas_Coord w,h;
29 29
30 _gui.win = elm_win_add(NULL, "Empower", ELM_WIN_DIALOG_BASIC); 30 _gui.win = elm_win_add(NULL, "Empower", ELM_WIN_DOCK);
31 elm_win_title_set(_gui.win, "Empower"); 31 elm_win_title_set(_gui.win, "Empower");
32 elm_win_raise(_gui.win); 32 elm_win_raise(_gui.win);
33 elm_win_borderless_set(_gui.win, 1); 33 elm_win_borderless_set(_gui.win, 1);
34 elm_win_autodel_set(_gui.win, 1); 34 elm_win_autodel_set(_gui.win, 1);
35 elm_win_alpha_set(_gui.win,1); 35 elm_win_alpha_set(_gui.win,1);
36 elm_win_fullscreen_set(_gui.win, 1); 36 elm_win_override_set(_gui.win,1);
37 elm_win_keyboard_mode_set(_gui.win, ELM_WIN_KEYBOARD_ON); 37 elm_win_keyboard_mode_set(_gui.win, ELM_WIN_KEYBOARD_ON);
38 38
39 // Make window fill screen without using fullscreen flag
39 elm_win_screen_size_get(_gui.win, NULL, NULL, &_gui.w, &_gui.h); 40 elm_win_screen_size_get(_gui.win, NULL, NULL, &_gui.w, &_gui.h);
41 evas_object_resize(_gui.win, _gui.w, _gui.h);
40 42
41 bg = elm_image_add(_gui.win); 43 bg = elm_image_add(_gui.win);
42 snprintf(buf, sizeof(buf), "%s/data/trans.png", PACKAGE_DATA_DIR); 44 snprintf(buf, sizeof(buf), "%s/data/trans.png", PACKAGE_DATA_DIR);