From: caro Date: Mon, 22 Mar 2010 07:45:51 +0000 (+0000) Subject: add fullscreen support to software xcb X-Git-Tag: 2.0_alpha~31^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa55bc3cff6b2c6454d9aac8e2e9cf59676a3897;p=framework%2Fuifw%2Fexpedite.git add fullscreen support to software xcb git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/expedite@47366 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/engine_software_xcb.c b/src/bin/engine_software_xcb.c index e950713..49f1f29 100644 --- a/src/bin/engine_software_xcb.c +++ b/src/bin/engine_software_xcb.c @@ -132,6 +132,24 @@ engine_software_xcb_args(const char *engine, int width, int height) printf("Evas can not setup the informations of the Software XCB Engine\n"); goto destroy_window; } + + if (fullscreen) + { + xcb_intern_atom_cookie_t cookie1; + xcb_intern_atom_cookie_t cookie2; + xcb_intern_atom_reply_t *reply; + xcb_atom_t prop; + xcb_atom_t type; + xcb_atom_t state; + + cookie1 = xcb_intern_atom_unchecked(conn, 0, strlen("_NET_WM_STATE"), "_NET_WM_STATE"); + cookie2 = xcb_intern_atom_unchecked(conn, 0, strlen("_NET_WM_STATE_FULLSCREEN"), "_NET_WM_STATE_FULLSCREEN"); + reply = xcb_intern_atom_reply(conn, cookie1, NULL); + prop = reply->atom; + reply = xcb_intern_atom_reply(conn, cookie2, NULL); + state = reply->atom; + xcb_change_property(conn, XCB_PROP_MODE_REPLACE, win, prop, XCB_ATOM_ATOM, 32, 1, (const void *)&state); + } str = "expedite\0Expedite"; @@ -174,9 +192,9 @@ engine_software_xcb_args(const char *engine, int width, int height) wm_normal_hint, wm_size_hint, 32, sizeof(hints) / 4, &hints); - free(xcb_get_input_focus_reply(conn, xcb_get_input_focus_unchecked(conn), NULL)); - xcb_map_window(conn, win); + + free(xcb_get_input_focus_reply(conn, xcb_get_input_focus_unchecked(conn), NULL)); while (!first_expose) engine_software_xcb_loop();