mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-23 02:05:02 +09:00
CopyFromParent
This commit is contained in:
@@ -297,10 +297,9 @@ namespace gsr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static mgl::vec2i create_window_get_center_position(Display *display) {
|
static mgl::vec2i create_window_get_center_position(Display *display) {
|
||||||
const int screen = DefaultScreen(display);
|
|
||||||
XSetWindowAttributes window_attr;
|
XSetWindowAttributes window_attr;
|
||||||
window_attr.event_mask = StructureNotifyMask;
|
window_attr.event_mask = StructureNotifyMask;
|
||||||
const Window window = XCreateWindow(display, DefaultRootWindow(display), 0, 0, 32, 32, 0, DefaultDepth(display, screen), InputOutput, DefaultVisual(display, screen), CWEventMask, &window_attr);
|
const Window window = XCreateWindow(display, DefaultRootWindow(display), 0, 0, 32, 32, 0, CopyFromParent, InputOutput, CopyFromParent, CWEventMask, &window_attr);
|
||||||
if(!window)
|
if(!window)
|
||||||
return {0, 0};
|
return {0, 0};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user