We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb51e2a commit 3e5b10fCopy full SHA for 3e5b10f
robotgo.go
@@ -457,6 +457,11 @@ func GetXDisplayName() string {
457
return gname
458
}
459
460
+// CloseMainDisplay close the main X11 display
461
+func CloseMainDisplay() {
462
+ C.close_main_display()
463
+}
464
+
465
// Deprecated: use the ScaledF(),
466
//
467
// ScaleX get the primary display horizontal DPI scale factor, drop
screen/goScreen.h
@@ -79,6 +79,14 @@ char* get_XDisplay_name() {
79
#endif
80
81
82
+void close_main_display() {
83
+ #if defined(USE_X11)
84
+ XCloseMainDisplay();
85
+ #else
86
+ //
87
+ #endif
88
89
90
uint32_t get_num_displays() {
91
#if defined(IS_MACOSX)
92
uint32_t count = 0;
0 commit comments