summaryrefslogtreecommitdiff
path: root/stdlibsock/gfx/crtwin.cc
blob: 82f8cdc297b65d2984bee59abbbd05999f4cd23a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# include <cstdint>
# include <iostream>
# include <luma/main.hh>
# include <string>
# include <unistd.h>
# include <wayland-client.h>
uint8_t luma::stdlibsock::gfx::crtwin(std::basic_string<char>,uint16_t pos_x,uint16_t pos_y,uint16_t res_x,uint16_t res_y,bool flscrn) {
	if(flscrn) {
		std::cout << "Fullscreen is not supported yet!\n";
	}
	luma::dat.wldisp = wl_display_connect(NULL);
	if(luma::dat.wldisp == nullptr) {
		std::cout << "Unable to make a Wayland connection!\n";
	}
	else {
		std::cout << "A Wayland connection has been made.\n";
	}
	::sleep(0x6);
	::wl_display_disconnect(luma::dat.wldisp);
	return 0x0;
}