summaryrefslogtreecommitdiff
path: root/stdlibsock/gfx/crtwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlibsock/gfx/crtwin.c')
-rw-r--r--stdlibsock/gfx/crtwin.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/stdlibsock/gfx/crtwin.c b/stdlibsock/gfx/crtwin.c
deleted file mode 100644
index 4ab2fcf..0000000
--- a/stdlibsock/gfx/crtwin.c
+++ /dev/null
@@ -1,28 +0,0 @@
-# include <luma/main.h>
-# include <stdint.h>
-# include <stdio.h>
-# include <string.h>
-# include <unistd.h>
-# include <xcb/xcb.h>
-# include <xcb/xcb_atom.h>
-uint8_t luma__stdlibsock__gfx__crtwin(char * nm,uint16_t pos_x,uint16_t pos_y,uint16_t res_x,uint16_t res_y,bool flscrn) {
- uint32_t retval = 0x0;
- if(flscrn) {
- printf("Fullscreen is not supported yet!\n");
- }
- if(strncmp(luma__dat.dispsrv,"wayland",0x10)) {
-
- }
- else if(strncmp(luma__dat.dispsrv,"x",0x10)) {
- luma__initx(&retval);
- luma__dat.xscrn = xcb_setup_roots_iterator(xcb_get_setup(luma__dat.xconn)).data;
- luma__dat.xwin = xcb_generate_id(luma__dat.xconn);
- xcb_create_window(luma__dat.xconn,XCB_COPY_FROM_PARENT,luma__dat.xwin,luma__dat.xscrn->root,pos_y,pos_x,res_x,res_y,0xa,XCB_WINDOW_CLASS_INPUT_OUTPUT,luma__dat.xscrn->root_visual,0x0,NULL);
- xcb_change_property(luma__dat.xconn,XCB_PROP_MODE_REPLACE,luma__dat.xwin,XCB_ATOM_WM_NAME,XCB_ATOM_STRING,0x8,strlen(nm),nm);
- xcb_map_window(luma__dat.xconn,luma__dat.xwin);
- xcb_flush(luma__dat.xconn);
- sleep(0x6);
- xcb_disconnect(luma__dat.xconn);
- }
- return 0x0;
-}