A high-definition scaling method under a custom window layout

By configuring and setting the scaling parameters and properties of the custom window in the Linux system, the problem of misalignment and coordinate errors in the scaling function of the custom window layout under the high-definition display is solved, the stability and applicability of the multi-screen interface is achieved, and the interface is avoided. Problems with misalignment and poor mouse clickability.

CN114153359BActive Publication Date: 2024-08-23KYLIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111361276.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-17
Publication Date
2024-08-23
Estimated Expiration
2041-11-17

AI Technical Summary

Technical Problem

The existing Linux system's zoom function of customized window layout under high-definition monitors has problems of misalignment, drifting, and coordinate errors, resulting in unstable interface and poor mouse clickability.

Method used

Create the configuration of scaling parameters and window scaling properties in the Linux system, combine the system and window scaling parameters, set the scaling factor and properties of the custom window, and ensure the stable display of the custom title bar and borderless window under high-definition scaling.

Benefits of technology

It achieves the stability and applicability of the multi-screen interface of custom windows under high-definition scaling, and avoids interface misalignment and mouse clickability issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114153359B
    Figure CN114153359B
Patent Text Reader

Abstract

A high-definition zooming method under a custom window layout, the method comprising the steps of: creating a zoom parameter storage configuration in a Linux system; creating a zoom multiple storage configuration in the Linux system; setting a system zoom parameter; setting a custom window zoom attribute; obtaining a zoom multiple; combining the system zoom parameter and the window zoom attribute into a custom window. The high-definition zooming method under a custom window layout provided by the present invention has the following beneficial effects: in a custom window, a custom title bar, a borderless window, high-definition zooming, and a combination of dual screens are adapted to achieve the stability and applicability of the interface under multiple screens; in a custom window, the zooming of a custom title bar and a borderless window under dual screens will not have the interface and mouse click problems that occur in other Linux systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of Linux systems, and in particular relates to a high-definition scaling method under a custom window layout. Background Art

[0002] With the continuous updating of display devices, high-definition monitors have gradually come into the public eye and are becoming more and more common. However, the existing Linux system has problems such as small fonts on high-resolution interfaces and blurred low-resolution interfaces when connected to high-definition monitors. Therefore, the technology of Linux system adapting to high-definition display devices has received attention. At the same time, whether it can adapt to high-definition display devices also indicates whether the operating system has entered the high-end series.

[0003] The current mainstream Linux operating system scaling method is: the application is enlarged or reduced by a relevant multiple according to the size of the DPI variable value set by the system; the window manager controls the location and size of the application window (including the title bar and window border of the application window). However, in actual development, the layout of the window is different according to the functions of the components and modules. In order to better implement some interface functions and beautify the window display, developers often customize the window, such as: developers do not use the borders and title bars provided by the system, but customize the title bar, remove the interface border, etc. At this time, if the scaling function is added, a series of problems will arise.

[0004] In the currently known Linux operating system, the above-mentioned customized title bar, borderless window and other types of applications are not well adapted to the scaling function, and there are the following problems:

[0005] (1) Under high-definition scaling, such as 200% scaling of dual screens, the QT window moves to the right screen. When you drag the window, the mouse may be misplaced or the window may float;

[0006] (2) Under high-definition scaling, such as 200% scaling of dual screens, the QT application may incorrectly obtain coordinates, resulting in window misalignment, overlap, and a white screen. Summary of the invention

[0007] To solve the above problems, the present invention provides a high-definition scaling method under a custom window layout, the method comprising the steps of:

[0008] Create a scaling parameter storage configuration in Linux system;

[0009] Creating a scaling storage configuration in the Linux system;

[0010] Set system scaling parameters;

[0011] Set custom window scaling properties;

[0012] Get the zoom factor;

[0013] The system scaling parameters and the window scaling properties are combined into a custom window.

[0014] Preferably, the step of setting the system scaling parameters comprises the steps of:

[0015] Get the underlying scaling variables in the system;

[0016] Set the system scaling variable value.

[0017] Preferably, before setting the system scaling parameters, the method further includes the following steps:

[0018] Creating the custom window on the Linux system;

[0019] Setting a scaling property value for the custom window;

[0020] The custom window is enlarged by the corresponding zoom factor according to the zoom storage configuration and the set property values.

[0021] Preferably, the step of obtaining the zoom factor comprises the steps of:

[0022] Get the zoom factor in Linux system;

[0023] The custom window gets the correct scaling size according to the set scaling factor and scaling property value.

[0024] Preferably, before obtaining the zoom factor, the method further includes the following steps:

[0025] Creating the custom window on the Linux system;

[0026] A zoom function attribute is set for the custom window.

[0027] The high-definition zooming method under a customized window layout provided by the present invention has the following beneficial effects:

[0028] (1) The combination of custom title bar, borderless window, high-definition zoom and dual-screen adaptation in custom windows realizes the stability and applicability of the interface under multiple screens;

[0029] (2) For custom windows, custom title bars, and borderless windows on dual screens, scaling will not cause the interface and mouse click issues that occur in other Linux systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0031] Figure 1 It is a flow chart of a high-definition zooming method under a custom window layout provided by the present invention;

[0032] Figure 2 It is the DPI value corresponding to different zoom multiples in a high-definition zoom method under a custom window layout provided by the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0034] like Figure 1 In an embodiment of the present application, the present invention provides a high-definition scaling method under a custom window layout, the method comprising the steps of:

[0035] S1: Create a scaling parameter storage configuration in the Linux system;

[0036] S2: creating a scaling factor storage configuration in the Linux system;

[0037] S3: Set system scaling parameters;

[0038] In an embodiment of the present application, setting the system scaling parameters comprises the steps of:

[0039] Get the underlying scaling variables in the system;

[0040] Set the scaling properties for the custom window

[0041] In the embodiment of the present application, when setting the system scaling parameters, it is first necessary to obtain the underlying scaling variables in the system, and then set the scaling properties of the custom window.

[0042] In the embodiment of the present application, before setting the system scaling parameters, the following steps are also included:

[0043] Creating a scaling parameter storage configuration in the Linux;

[0044] Creating the custom window on the Linux system;

[0045] Setting a scaling property value for the custom window;

[0046] The custom window is enlarged by the corresponding zoom factor according to the zoom storage configuration and the set property values.

[0047] In the embodiment of the present application, before setting the system scaling parameters, it is necessary to store the scaling parameters in the Linux system. Specifically, firstly, a scaling parameter storage configuration is created in the Linux system, then the custom window is created on the Linux system, and then the scaling attribute value is set for the custom window, and the underlying program in the system sets the underlying scaling variable (DPI value) according to the set scaling multiple.

[0048] S4: Set custom window scaling properties;

[0049] S5: Get the zoom factor;

[0050] In an embodiment of the present application, obtaining the zoom factor includes the steps of:

[0051] Get the zoom factor in Linux system;

[0052] Set custom window scaling properties.

[0053] In the embodiment of the present application, when obtaining the zoom factor, it is first necessary to obtain the zoom factor in the Linux system, and then set the custom window zoom attribute.

[0054] In the embodiment of the present application, before obtaining the zoom factor, the following steps are also included:

[0055] Creating a scaling storage configuration in the Linux system;

[0056] Creating the custom window on the Linux system;

[0057] A zoom function attribute is set for the custom window.

[0058] In the embodiment of the present application, the zoom factor needs to be stored in the Linux system before the zoom factor is obtained. Specifically, the custom window is first created on the Linux system, and then the zoom function attribute is set for the custom window; and then the zoom factor storage configuration is created in the Linux system.

[0059] S6: Combining the system scaling parameter and the window scaling attribute into a custom window.

[0060] Figure 2The corresponding DPI values ​​under different zoom factors are provided. When the zoom factor is 100%, the default DPI=96, and when the zoom factor is 200%, DPI=2×96=192.

[0061] The high-definition zooming method under a customized window layout provided by the present invention has the following beneficial effects:

[0062] (1) The combination of custom title bar, borderless window, high-definition zoom and dual-screen adaptation in custom windows realizes the stability and applicability of the interface under multiple screens;

[0063] (2) For custom windows, custom title bars, and borderless windows under dual-screen scaling, the interface and mouse click issues that occur in other Linux systems will not occur.

[0064] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.

Claims

1. A high-definition scaling method under a custom window layout, characterized in that: The method comprises the steps of: Create a scaling parameter storage configuration in Linux system; Creating a scaling storage configuration in the Linux system; Set system scaling parameters; Set custom window scaling properties; Get the zoom factor; Combining the system scaling parameters and the window scaling attributes into a custom window; The step of setting the system scaling parameters includes: Get the underlying scaling variables in the system; Set the system scaling variable value; Before setting the system scaling parameters, the method further includes the following steps: Creating the custom window on the Linux system; Setting a scaling property value for the custom window; The custom window is enlarged by the corresponding zoom factor according to the zoom storage configuration and the set property value; Before setting the system scaling parameters, the scaling parameters need to be stored in the Linux system: specifically, firstly, a scaling parameter storage configuration is created in the Linux system, then the custom window is created on the Linux system, and then the scaling attribute value of the custom window is set, and the underlying program in the system sets the underlying scaling variable according to the set scaling multiple.

2. The high-definition zooming method under a custom window layout according to claim 1, characterized in that: The obtaining of the zoom factor comprises the steps of: Get the zoom factor in Linux system; The custom window gets the correct scaling size according to the set scaling factor and scaling property value.

3. The high-definition zooming method under a custom window layout according to claim 1, characterized in that: Before obtaining the zoom factor, the method further includes the following steps: Creating the custom window on the Linux system; A zoom function attribute is set for the custom window.