Multi-desktop operation method and device, computer equipment and storage medium
Through multi-desktop operation methods, the switch that maximizes or takes up 1/N of the screen is set according to the number of desktops running on the target screen, and the desktop is processed according to user operation instructions, solving the inefficiency of existing multi-tasking methods, waste of resources and user experience. The poor problem achieves a more efficient and flexible multitasking experience.
Patent Information
- Application Number
- CN202411418590.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-02-14
AI Technical Summary
Existing multitasking methods are inefficient when handling a large number of parallel tasks, have serious resource waste and poor user experience, especially when window management and positioning are complex on high-resolution large screens.
Provide a multi-desktop operation method. By obtaining the number of desktops running on the target screen, determine whether it is necessary to set a switch that maximizes or takes 1/N on the screen, and performs corresponding processing on the desktop according to the user's operating instructions, including maximizing and occupying. Screen 1/N or close processing.
Improve users' flexibility and efficiency in multitasking. Through flexible desktop management and layout adjustment, users can quickly switch work environments, simplify operation processes, improve work efficiency, and share functions and desktops through cross-desktop mouse and keyboard. The shared transmission of cached data between the two caches shortens the software loading time and improves the utilization rate of system resources.
Smart Images

Figure CN119440696A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic information technology, and in particular to a multi-desktop operation method, device, computer equipment and storage medium. Background Art
[0002] Currently, multitasking is widely used in terminal devices such as personal computers, smartphones, and tablets. Users usually run multiple applications simultaneously through the multitasking interface provided by the window manager or operating system. However, these methods have limitations when handling a large number of parallel tasks, especially when users need to switch frequently between different applications. There are the following disadvantages:
[0003] Inefficiency: Traditional multitasking interfaces take extra time to switch applications, especially on large, high-resolution screens, where window management and positioning become complicated.
[0004] Resource waste: When multiple applications are running in parallel, uneven allocation of system resources may cause some applications to run slowly or freeze.
[0005] Poor user experience: Users must manually manage window size and position, which not only increases the operational burden but may also lead to data loss or confusion due to incorrect operations. Summary of the invention
[0006] The embodiments of the present disclosure provide a multi-desktop operation method, apparatus, computer equipment and storage medium, which can optimize the multi-tasking experience of users and promote the innovative development of computer terminal operation interface and multi-tasking management technology.
[0007] According to a first aspect of an embodiment of the present disclosure, a multi-desktop operation method is provided, the method comprising:
[0008] Get the number of desktops running on the target screen;
[0009] According to the number of desktops running on the target screen, determining whether it is necessary to set a switch for maximizing or occupying 1 / N of the screen for the desktops running on the target screen; wherein N≥2, and N is an even number;
[0010] The user's operation instruction is obtained, and corresponding processing is performed on the desktop running on the target screen according to the operation instruction.
[0011] In one embodiment, the determining whether to set a maximize switch or a switch to occupy 1 / N of the screen for the desktops running on the target screen according to the number of desktops running on the target screen includes:
[0012] If the number of desktops running on the target screen is one, it is determined that there is no need to set a maximize switch or a switch that occupies 1 / N of the screen for the desktop running on the target screen;
[0013] The obtaining of the user's operation instruction and performing corresponding processing on the desktop running on the target screen according to the operation instruction includes:
[0014] The user's operation instruction is obtained, and the desktop running on the target screen is closed according to the operation instruction.
[0015] In one embodiment, the method comprises:
[0016] If the number of desktops running on the target screen is at least two, determining that a maximize switch or a switch occupying 1 / N of the screen needs to be set for the desktops running on the target screen;
[0017] The obtaining of the user's operation instruction and performing corresponding processing on the desktop running on the target screen according to the operation instruction includes:
[0018] The user's operation instruction is obtained, and according to the operation instruction, the desktop running on the target screen is maximized, occupies 1 / N of the screen, or closed.
[0019] In one embodiment, the method further comprises:
[0020] Get the mouse position information;
[0021] A target desktop is determined on the target screen according to the position information of the mouse.
[0022] In one embodiment, the method further comprises:
[0023] Obtaining location information of the target desktop;
[0024] The position of the keyboard input cursor is determined according to the position information of the target desktop.
[0025] In one embodiment, the method further comprises:
[0026] Determining whether the same target software is running in at least two of the desktops;
[0027] If it is determined that the same target software is running in at least two of the desktops, the local cache and basic running information of the target software are extracted to the independent space of the terminal for running.
[0028] According to a second aspect of an embodiment of the present disclosure, a multi-desktop operation device is provided, the multi-desktop operation device comprising: a first acquisition module, a first determination module and a processing module; wherein:
[0029] The first acquisition module acquires the number of desktops running on the target screen;
[0030] The first determination module determines whether it is necessary to set a switch for maximizing or occupying 1 / N of the screen for the desktops running on the target screen, according to the number of desktops running on the target screen; wherein N≥2, and N is an even number;
[0031] The processing module obtains the user's operation instruction and performs corresponding processing on the desktop running on the target screen according to the operation instruction.
[0032] In one embodiment, the device further includes a second acquisition module, a second determination module, a third acquisition module and a third determination module; wherein,
[0033] The second acquisition module acquires the position information of the mouse;
[0034] The second determining module determines the target desktop on the target screen according to the position information of the mouse;
[0035] The third acquisition module acquires the location information of the target desktop;
[0036] The third determination module determines the position of the keyboard input cursor according to the position information of the target desktop.
[0037] According to a third aspect of an embodiment of the present application, a computer device is provided, including: a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0038] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0039] The multi-desktop operation method provided by the embodiment of the present disclosure will greatly improve the flexibility and efficiency of users when performing multi-tasking. Through flexible desktop management and layout adjustment, users can quickly switch work environments according to task requirements. Through the cross-desktop mouse and keyboard sharing function, the operation process is simplified and work efficiency is improved. Through the shared transmission of cached data between desktops, the software loading time is further shortened and the system resource utilization is improved. In summary, the multi-desktop operation method provided by the present disclosure not only optimizes the user's multi-tasking experience, but also promotes the innovative development of computer terminal operation interfaces and multi-tasking management technologies.
[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0042] Figure 1 is a flow chart of a multi-desktop operation method provided by an embodiment of the present disclosure;
[0043] Figure 2 is a schematic diagram of screen sharing in a multi-desktop operation method provided by an embodiment of the present disclosure;
[0044] Figure 3 is a schematic diagram of data intercommunication in a multi-desktop operation method provided by an embodiment of the present disclosure;
[0045] Figure 4 is a structural diagram of a multi-desktop operating device provided by an embodiment of the present disclosure;
[0046] Figure 5 is a structural diagram of a multi-desktop operating device provided by an embodiment of the present disclosure;
[0047] Figure 6 It is a structural diagram of a computer device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0049] The multi-desktop operation method disclosed in the present invention can be used for a multi-desktop operating system, which can create and manage N independent desktop environments on a single terminal screen. The system can allow the user to set the screen as needed to run N desktops simultaneously, and each desktop can run different applications independently.
[0050] The following briefly describes the application environment of the multi-desktop operation method provided by the embodiment of the present disclosure.
[0051] See also Figure 1 The following embodiments take a multi-desktop operating device as the execution subject, and apply the method provided by the embodiment of the present disclosure to the multi-desktop operating device for specific description. The multi-desktop operating method provided by the embodiment of the present disclosure includes the following steps 101 to 103:
[0052] Step 101, obtaining the number of desktops running on the target screen;
[0053] In this step, one or more desktops can be run on the target screen. When one desktop is run on the target screen, the running desktop occupies the target screen exclusively. When N desktops are run, each desktop occupies 1 / N of the target screen.
[0054] Step 102: Determine whether it is necessary to set a switch for maximizing or occupying 1 / N of the screen for the desktops running on the target screen, according to the number of desktops running on the target screen; wherein N≥2, and N is an even number;
[0055] Step 103: Acquire the user's operation instruction, and perform corresponding processing on the desktop running on the target screen according to the operation instruction.
[0056] In one embodiment, the determining whether to set a maximize switch or a switch to occupy 1 / N of the screen for the desktops running on the target screen according to the number of desktops running on the target screen includes:
[0057] If the number of desktops running on the target screen is one, it is determined that there is no need to set a maximize switch or a switch that occupies 1 / N of the screen for the desktop running on the target screen;
[0058] The obtaining of the user's operation instruction and performing corresponding processing on the desktop running on the target screen according to the operation instruction includes:
[0059] The user's operation instruction is obtained, and the desktop running on the target screen is closed according to the operation instruction.
[0060] In this embodiment, when the number of desktops running on the target screen is one, there is no need to set a maximize switch or a switch that occupies 1 / N of the screen for the desktop running on the target screen. After obtaining the user's operation instruction, the desktop running on the target screen is closed according to the operation instruction.
[0061] In one embodiment, the method comprises:
[0062] If the number of desktops running on the target screen is at least two, determining that a maximize switch or a switch occupying 1 / N of the screen needs to be set for the desktops running on the target screen;
[0063] The obtaining of the user's operation instruction and performing corresponding processing on the desktop running on the target screen according to the operation instruction includes:
[0064] The user's operation instruction is obtained, and according to the operation instruction, the desktop running on the target screen is maximized, occupies 1 / N of the screen, or closed.
[0065] In this embodiment, when the number of desktops running on the target screen is at least two, it is necessary to set a maximize switch or a switch that occupies 1 / N of the screen for the desktops running on the target screen. When 1 / N desktops are selected, the remaining N-1 desktops are automatically arranged according to the boot time.
[0066] For example, when two desktops are running, you can close one of them, and the remaining desktop will occupy the entire screen; when four desktops are running, you can manually choose to close one desktop, and then automatically select the one with the shortest boot time to close, and automatically save user data before closing; the same goes for six desktops, eight desktops, and so on. When you have closed the remaining two, just refer to the above.
[0067] It should be noted that, in this embodiment, when one desktop is running and displaying, a single desktop can be turned on for running and displaying, so that the screen display is output in 1 / 2 mode. When two desktops need to be turned on during operation, an even number of desktops need to be turned on at one time. If the even number condition is not met, it is not allowed to start running and displaying.
[0068] In one embodiment, the method further comprises:
[0069] Get the mouse position information;
[0070] The target desktop is determined on the target screen according to the position information of the mouse. That is, in this embodiment, the target desktop can be determined according to the position information of the mouse.
[0071] In this embodiment, when multiple desktops are displayed simultaneously, the system supports sharing of the mouse between different desktops. When the mouse slides to the edge of the screen, it automatically switches to the desktop closest to the mouse.
[0072] In one embodiment, the method further comprises:
[0073] Obtaining location information of the target desktop;
[0074] The position of the keyboard input cursor is determined according to the position information of the target desktop.
[0075] In this embodiment, the keyboard input will automatically switch to the desktop where the mouse is located. That is to say, in this embodiment, the position of the keyboard input cursor can be determined based on the position information of the mouse.
[0076] Optionally, the method further comprises:
[0077] Determining whether the same target software is running in at least two of the desktops;
[0078] If it is determined that the same target software is running in at least two of the desktops, the local cache and basic running information of the target software are extracted to the independent space of the terminal for running.
[0079] In this embodiment, when it is detected that multiple desktops are running the same software, the local cache and basic operation information of the software are extracted to the independent space of the terminal for operation. Each desktop can independently call the public information on the terminal to achieve independent use of the software. At the same time, the cache data can be shared between desktops to improve the operation efficiency of the software.
[0080] Figure 2 FIG. 1 is a schematic diagram of screen sharing in a multi-desktop operation method provided by an embodiment of the present disclosure. Figure 2 It can be seen that the embodiments of the present disclosure can enable users to quickly switch work environments according to task requirements through flexible desktop management and layout adjustment. The mouse and keyboard sharing function across desktops simplifies the operation process and improves work efficiency.
[0081] Figure 3 Schematic diagram of data intercommunication in a multi-desktop operation method provided by an embodiment of the present disclosure. Figure 3 It can be seen that the embodiment of the present disclosure further shortens the software loading time and improves the utilization rate of system resources through the shared transmission of cache data between desktops.
[0082] The multi-desktop operation method provided by the embodiment of the present disclosure will greatly improve the flexibility and efficiency of users when performing multi-tasking. Through flexible desktop management and layout adjustment, users can quickly switch work environments according to task requirements. Through the cross-desktop mouse and keyboard sharing function, the operation process is simplified and work efficiency is improved. Through the shared transmission of cached data between desktops, the software loading time is further shortened and the system resource utilization is improved. In summary, the multi-desktop operation method provided by the present disclosure not only optimizes the user's multi-tasking experience, but also promotes the innovative development of computer terminal operation interfaces and multi-tasking management technologies.
[0083] Based on the above Figure 1 The multi-desktop operation method described in the corresponding embodiment is as follows: an embodiment of the device disclosed herein, which can be used to execute the embodiment of the method disclosed herein.
[0084] Figure 4 This is a diagram of the architecture of a multi-desktop operating device provided by an embodiment of the present disclosure. Figure 4As shown, the multi-desktop operation device 40 includes: a first acquisition module 401, a first determination module 402 and a processing module 403; wherein, the first acquisition module 401 is used to obtain the number of desktops running on the target screen; the first determination module 402 is used to determine whether it is necessary to set a switch for maximizing or occupying 1 / N of the screen for the desktops running on the target screen according to the number of desktops running on the target screen; wherein N≥2, and N is an even number; the processing module 403 is used to obtain the user's operation instructions, and perform corresponding processing on the desktops running on the target screen according to the operation instructions.
[0085] Figure 5 This is a diagram of the architecture of a multi-desktop operating device provided by an embodiment of the present disclosure. Figure 5 As shown, the multi-desktop operation device 50 includes: a first acquisition module 501, a first determination module 502, a processing module 503, a second acquisition module 504, a second determination module 505, a third acquisition module 506 and a third determination module 507; wherein, the second acquisition module 504 is used to obtain the position information of the mouse; the second determination module 505 is used to determine the target desktop on the target screen according to the position information of the mouse; the third acquisition module 506 is used to obtain the position information of the target desktop; the third determination module 507 is used to determine the position of the keyboard input cursor according to the position information of the target desktop.
[0086] In one embodiment, a computer device is provided, the internal structure diagram of which can be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a multi-desktop operation processing method as described above is implemented. It includes: a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, any step in the multi-desktop operation method as described above is implemented.
[0087] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any step in the above multi-desktop operation method can be implemented.
[0088] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0089] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0090] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0092] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present disclosure.
[0093] Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A multi-desktop operation method, characterized in that: The method comprises: Get the number of desktops running on the target screen; According to the number of desktops running on the target screen, determining whether it is necessary to set a switch for maximizing or occupying 1 / N of the screen for the desktops running on the target screen; wherein N≥2, and N is an even number; The user's operation instruction is obtained, and corresponding processing is performed on the desktop running on the target screen according to the operation instruction.
2. The method according to claim 1, characterized in that The determining, according to the number of desktops running on the target screen, whether it is necessary to set a maximize switch or a switch for occupying 1 / N of the screen for the desktops running on the target screen comprises: If the number of desktops running on the target screen is one, it is determined that there is no need to set a maximize switch or a switch that occupies 1 / N of the screen for the desktop running on the target screen; The obtaining of the user's operation instruction and performing corresponding processing on the desktop running on the target screen according to the operation instruction includes: The user's operation instruction is obtained, and the desktop running on the target screen is closed according to the operation instruction.
3. The method according to claim 2, characterized in that The method comprises: If the number of desktops running on the target screen is at least two, determining that a maximize switch or a switch occupying 1 / N of the screen needs to be set for the desktops running on the target screen; The obtaining of the user's operation instruction and performing corresponding processing on the desktop running on the target screen according to the operation instruction includes: The user's operation instruction is obtained, and according to the operation instruction, the desktop running on the target screen is maximized, occupies 1 / N of the screen, or closed.
4. The method according to claim 3, characterized in that The method further comprises: Get the mouse position information; A target desktop is determined on the target screen according to the position information of the mouse.
5. The method according to claim 4, characterized in that The method further comprises: Obtaining location information of the target desktop; The position of the keyboard input cursor is determined according to the position information of the target desktop.
6. The method according to any one of claims 3 to 5, characterized in that The method further comprises: Determining whether the same target software is running in at least two of the desktops; If it is determined that the same target software is running in at least two of the desktops, the local cache and basic running information of the target software are extracted to the independent space of the terminal for running.
7. A multi-desktop operating device, characterized in that: The multi-desktop operation device comprises: a first acquisition module, a first determination module and a processing module; wherein, The first acquisition module acquires the number of desktops running on the target screen; The first determination module determines whether it is necessary to set a switch for maximizing or occupying 1 / N of the screen for the desktops running on the target screen, according to the number of desktops running on the target screen; wherein N≥2, and N is an even number; The processing module obtains the user's operation instruction and performs corresponding processing on the desktop running on the target screen according to the operation instruction.
8. The multi-desktop operating device according to claim 7, characterized in that: The device further includes a second acquisition module, a second determination module, a third acquisition module and a third determination module; wherein, The second acquisition module acquires the position information of the mouse; The second determining module determines the target desktop on the target screen according to the position information of the mouse; The third acquisition module acquires the location information of the target desktop; The third determination module determines the position of the keyboard input cursor according to the position information of the target desktop.
9. A computer device comprising: A memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.