mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
detect window size
This commit is contained in:
parent
32a159beed
commit
cfdb609adb
9
main.cpp
9
main.cpp
@ -189,10 +189,15 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
Display *x11display = XOpenDisplay(NULL);
|
Display *x11display = XOpenDisplay(NULL);
|
||||||
Screen *x11Screen = DefaultScreenOfDisplay(x11display);
|
Screen *x11Screen = DefaultScreenOfDisplay(x11display);
|
||||||
int windowWidth = x11Screen->width;
|
int windowWidth = 1920; // x11Screen->width;
|
||||||
int windowHeight = x11Screen->height;
|
int windowHeight = 1080; // x11Screen->height;
|
||||||
|
|
||||||
glfwWindowHint(GLFW_DECORATED, 0);
|
glfwWindowHint(GLFW_DECORATED, 0);
|
||||||
|
// glfwWindowHint(GLFW_NET_WM_WINDOW_TYPE_DESKTOP, 1);
|
||||||
|
// glfwWindowHint(GLFW_STICKY_WINDOW, 1);
|
||||||
|
// glfwWindowHint(GLFW_BELOW, 1);
|
||||||
|
// glfwWindowHint(GLFW_SKIP_TASKBAR, 1);
|
||||||
|
// glfwWindowHint(GLFW_SKIP_PAGER, 1);
|
||||||
|
|
||||||
// TODO: FIGURE OUT HOW TO PUT THIS WINDOW IN THE BACKGROUND
|
// TODO: FIGURE OUT HOW TO PUT THIS WINDOW IN THE BACKGROUND
|
||||||
GLFWwindow *window = glfwCreateWindow(windowWidth, windowHeight, "WallpaperEngine", NULL, NULL);
|
GLFWwindow *window = glfwCreateWindow(windowWidth, windowHeight, "WallpaperEngine", NULL, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user