CN114416252A - Window display method and device, computing equipment and storage medium - Google Patents
Window display method and device, computing equipment and storage medium Download PDFInfo
- Publication number
- CN114416252A CN114416252A CN202210044734.4A CN202210044734A CN114416252A CN 114416252 A CN114416252 A CN 114416252A CN 202210044734 A CN202210044734 A CN 202210044734A CN 114416252 A CN114416252 A CN 114416252A
- Authority
- CN
- China
- Prior art keywords
- window
- windows
- opened
- display
- time length
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000001514 detection method Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 238000011084 recovery Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008901 benefit Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000007723 transport mechanism Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a window display method, a window display device, a computing device and a storage medium, wherein the method comprises the following steps: searching all opened windows; detecting whether a target window with idle time exceeding preset time exists in all opened windows or not; if so, minimizing the display target window; and acquiring and storing window information of the target window. According to the invention, the minimized display operation can be automatically carried out on the opened window which is not selected for a long time, manual operation is not needed, and the efficiency of minimized display of the window is improved. And manual operation is not needed, and the use convenience is improved for the user, so that the user experience is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a window display method and apparatus, a computing device, and a storage medium.
Background
With the rapid development of internet technology and the increasing demand of people, application programs aiming at various demands are developed. In addition, in order to meet the needs of work, life, and the like, a plurality of applications are often opened in the computing device, and the opening of the applications is presented in the form of windows, so that opening the plurality of applications in the computing device is equivalent to opening a plurality of windows in the computing device.
However, in a plurality of open windows, only a few windows that are frequently used at high frequency are often used, and this causes many of the open windows to be left unused for a long time. However, when a plurality of windows are opened but are not used for a long time, desktop confusion is caused, certain interference is caused to the user to select the windows, and system resources are needed for rendering the opened windows, so that resource waste is caused, and the performance of the system is reduced. Currently, windows that are open and not selected for a long time can only be minimized manually by the user, but are inefficient.
Disclosure of Invention
To this end, the present invention provides a window display method in an attempt to solve or at least alleviate the above-identified problems.
According to an aspect of the present invention, there is provided a window display method performed in a display server of an operating system, the method including: searching all opened windows; detecting whether a target window with idle time length exceeding preset time length exists in all opened windows or not, wherein the idle time length is the time length of the window which is not selected; if so, minimizing the display target window; and acquiring and storing window information of the target window.
Optionally, the step of detecting whether there is a target window with an idle duration exceeding a preset duration in all the opened windows includes: acquiring the historical time of the last time any opened window is selected; performing difference processing on the current time and the historical time to obtain the idle time of any opened window; detecting whether the idle time of any opened window exceeds a preset time; if the idle time length exceeds the preset time length, a target window with the idle time length exceeding the preset time length exists in all opened windows; if not, the target window with the idle time length exceeding the preset time length does not exist in all the opened windows.
Optionally, the window display method provided by the invention further comprises the step of resuming to display the target window based on the window information when the first operation is detected.
Optionally, when a first operation is detected, acquiring window information of all minimally displayed windows, where the first operation is an operation of triggering a recovery button, and all the minimally displayed windows include a target window and a window that is minimally displayed manually by a user; determining an open state of the window before the minimized display according to the acquired window information; and restoring all the minimized windows to the window opening state before the minimized display so as to restore the displayed target window and the window manually minimized by the user.
Optionally, the window information includes a name, a position, a size, a type, and a display priority of the window.
Optionally, the display server stores an attribute table for recording states of opened windows, and the step of searching for all opened windows includes: all open windows are looked up by traversing the attribute table.
Optionally, the step of looking up all opened windows by traversing the attribute table comprises: polling the attribute table according to a preset time interval; judging whether the content of the attribute table is empty or not, and if not, searching all opened windows by traversing the attribute table; and if the content of the attribute table is empty, stopping the polling operation until the operation of opening the window is detected.
According to another aspect of the present invention, there is provided a window display apparatus, the apparatus including: the timing detection module is suitable for searching all opened windows and detecting whether a target window with the idle time length exceeding the preset time length exists in all the opened windows or not, wherein the idle time length is the time length of the window which is not selected; the window minimizing module is suitable for minimizing and displaying the target window when the target window with the idle time length exceeding the preset time length exists in all opened windows, and is also suitable for acquiring and storing window information of the target window; and the window restoration module is suitable for restoring and displaying all minimized windows based on the window information when a first operation is detected, wherein the first operation is an operation for triggering a restoration button, and all the minimized and displayed windows comprise a target window and a window which is manually minimized and displayed by a user.
According to yet another aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method as described above.
According to another aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method as described above.
According to the technical scheme of the invention, the window display method is provided, and the method comprises the steps of firstly searching all opened windows, detecting whether a target window with idle time exceeding preset time exists in all the opened windows, if so, minimizing the target window, acquiring window information of the target window, and storing the window information. Therefore, the method and the device can automatically perform the minimized display operation on the opened window which is not selected for a long time without manual operation, and improve the efficiency of the minimized display of the window. And manual operation is not needed, and the use convenience is improved for the user, so that the user experience is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a block diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a window display method 200 according to one embodiment of the invention;
FIG. 3 is a block diagram illustrating a configuration of a window display apparatus 300 according to an embodiment of the present invention;
FIG. 4 shows a flow diagram of a window display method 400 according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An application is a computer program that is designed to perform one or more specific tasks. With the rapid development of internet technology and the increasing demand of people, application programs aiming at various demands are developed. In addition, in order to meet the needs of work, life, and the like, a plurality of applications are often opened in the computing device, and the opening of the applications is presented in the form of windows, so that opening the plurality of applications in the computing device is equivalent to opening a plurality of windows in the computing device.
However, only a few windows that are frequently used with high frequency are available among the open windows, which results in that many of the open windows are in a state of being unselected for a long time, that is, in a state of being unused for a long time. However, when a plurality of windows are opened but are not used for a long time, desktop confusion is caused, certain interference is caused to the user to select the windows, and system resources are needed for rendering the opened windows, so that resource waste is caused, and the performance of the system is reduced. Currently, only windows that are open and have not been selected for a long time can be minimized manually by the user, but the above method is inefficient.
In order to solve the above problem, the present invention firstly provides a window display method, which may be executed in an operating system run by a computing device, and further, may be executed in a display server of the operating system. FIG. 1 shows a block diagram of a computing device 100, according to one embodiment of the invention. A block diagram of a computing device 100 As shown in FIG. 1, in a basic configuration 102, the computing device 100 typically includes a system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a Digital Signal Processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some embodiments, application 122 may be arranged to operate with program data 124 on an operating system. Program data 124 includes instructions, and in computing device 100 according to the present invention, program data 124 contains instructions for performing method 200 and method 400.
The computing device 100 also includes a storage device 132, the storage device 132 including removable storage 136 and non-removable storage 138, the removable storage 136 and the non-removable storage 138 each connected to the storage interface bus 134. In the present invention, the data related to each event occurring during the program execution process and the time information indicating the occurrence of each event may be stored in the storage device 132, and the operating system 120 is adapted to manage the storage device 132. The storage device 132 may be a magnetic disk.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes an image processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a server, such as a file server, a database server, an application server, a WEB server, etc., or as part of a small-form factor portable (or mobile) electronic device, such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless WEB-watch device, a personal headset device, an application specific device, or a hybrid device that include any of the above functions. Computing device 100 may also be implemented as a personal computer including both desktop and notebook computer configurations. In some embodiments, the computing device 100 is configured to perform a window display method 200 and method 400 in accordance with the present invention.
Fig. 2 shows a flowchart of a window display method 200 according to an embodiment of the present invention, the window display method 200 including steps S210 to S250. The method 200 is suitable for execution in an operating system run by the computing device 100 (e.g., the computing device shown in fig. 1), and further the method 200 is suitable for execution in a display server of the operating system.
It should be noted that the method 200 may be integrated in a display server of an operating system, and the integration manner may be according to an actual application scenario, which is not limited in the present invention, for example, the method 200 may be integrated in a display server of an operating system in a plug-in manner, so as to solve the problem of low efficiency in manually minimizing a display window in the prior art.
It should be noted that, each time a user opens a window, the display server records the state of the opened window in the attribute table in response to the operation of the user to open the window, where the state of the opened window may include a maximized state, a minimized state, a selected state, and the like. The attribute table is created in advance and stored, but the storage method is not limited in the present invention, and for example, the attribute table is stored in a storage device locally or communicatively connected to the computing apparatus 100 (the computing apparatus is a computing apparatus to which the display server belongs).
The storage device may be a database, further, the database may be a relational database, such as MYSQL, SqlServer, ACCESS, and the like, the database of the storage device may be a local database residing in the computing device 100 to which the display server belongs, or may be set at a plurality of geographic locations as a distributed database, such as Hbase and the like; the storage means may also be a cache, such as a redis cache or the like, which is anyway used for storing the attribute table. The invention does not limit the specific deployment and configuration conditions of the storage device.
After the display server records the state information of the opened windows in the attribute table, step S210 is executed to search all the opened windows. In one embodiment, all open windows are looked up by traversing the attribute table, specifically:
polling the attribute table according to a preset time interval, namely, periodically polling to judge whether the content of the attribute table is empty, if not, indicating that the opened window exists currently, searching all opened windows by traversing the attribute table. If the content of the attribute table is empty, it indicates that there is no window opened currently, and at this time, in order to save consumption of system resources, the polling operation is stopped until the display server responds to the user's operation of opening the window, and the polling task is started again. The preset time interval may be set according to an actual application scenario, which is not limited in the present invention, and for example, the preset time interval may be 1 minute.
It can be known from the above that, in the present invention, all the opened windows are not searched continuously, but when it is detected that a window is not opened currently, the search task is stopped, and at this time, the thread or process where the search task is located is released, and the memory resource occupied by the thread or process is released, so that the use of system resources is reduced, the system resources are saved, and the performance of the computing device is improved.
After all the opened windows are found, step S220 is executed, and it is detected whether a target window with an idle duration exceeding a preset duration exists in all the opened windows, where the idle duration is a duration in which the window is not selected, and the operation of selecting the window may be an operation in which a user selects any window through a mouse and displays the window on a display interface. It should be noted that, when a window is selected, the application program corresponding to the window records the time when the window is selected.
In one embodiment, step S220 specifically includes: sending a request for acquiring the last time of selecting a target window to an application program corresponding to a current window, receiving the last time of selecting the target window sent by the application program corresponding to the target window, performing difference processing on the current time and the historical time to obtain the idle time of any opened window, detecting whether the idle time of any opened window exceeds the preset time, if so, a target window with the idle time exceeding the preset time exists in all opened windows, and if not, a target window with the idle time exceeding the preset time does not exist in all opened windows.
The preset time period may be set according to an actual application scenario, which is not limited in the present invention, for example, the preset time period is defaulted to 15 minutes. It should be noted that the preset time duration may also be configured by the user, specifically, the preset time duration may be configured in a configuration interface provided by the display server to the user, and the user may configure the preset time duration according to the actual situation of the work and life of the user.
If there is a target window with idle duration exceeding the preset duration, which indicates that the window is not selected for a long time, step S230 is executed to minimize the display of the target window. After the target window is minimized, step S240 is executed to obtain and store window information of the target window.
The window information includes the name, position, size, type and display priority of the window, and the type of the window may be dock type, normal type, desktop type, etc. The display priority of the window can be determined according to the type of the window, taking the example that the type of the window can be a dock column type, a normal type and a desktop type, and the display priority of the window is in the order from high to low: dock type window, normal type window, desktop type window.
In one embodiment, step S240 specifically includes: acquiring window information of a target window (namely all minimized windows), and storing the window information of the target window into a configuration file. That is, the configuration file includes a plurality of data items, each of which includes a window name, a position, a size, a type, and a display priority.
If the target window with the idle time length exceeding the preset time length does not exist, the operation of displaying the minimum window is not needed. However, as can be seen from the above, there are windows that the user manually minimizes the display in addition to the target window that the method 200 minimizes the display, and thus, in order to restore all the minimized windows, the step S250 may be continuously performed.
After minimizing the display window, if the user wants to recover all the windows that are minimized, the user may trigger a recovery interface, further, the user may trigger a recovery interface in a user configuration interface provided by the display server, and when the display server detects an operation of the user triggering the recovery interface, in response to the operation, step S250 is executed to recover and display all the windows that are minimized based on the window information, where all the windows that are minimized include the target window and the window that is minimized manually by the user.
Step S250 specifically includes: and when detecting that the user can trigger the operation of the recovery interface, acquiring window information of all the minimally displayed windows from the configuration file. According to the acquired window information, the opening state of the window before the minimized display can be determined, the opening state of the window can be a maximized state, a minimized state, a selected state and the like, and all the windows which are minimized and displayed are restored to the opening state of the window before the minimized display, so that the minimized target window and the windows which are manually minimized and displayed by a user can be restored. If the window is in the maximized open state before the minimized display, the minimized displayed window may be restored to the maximized open state.
It should be noted that the window to be restored at this time may be a target window to be minimized and displayed through the above steps S210 to S240, or may be a window to be minimized and displayed manually by the user, and the window restoration may be realized as long as the window information of the minimized and displayed window is stored in the configuration file.
It should be noted that, during the process of displaying the minimized window, steps S210 to S240 need to be executed, and if the minimized window needs to be restored, step S250 continues to be executed. Accordingly, by executing steps S210 to S250, it is possible to automatically minimize the windows that have been opened and have not been selected for a long time, and restore the windows that have been minimized to the previously opened state.
According to the window display method, the minimized display operation can be automatically performed on the opened window which is not selected for a long time, manual operation is not needed, and the efficiency of the minimized display of the window is improved. And manual operation is not needed, and the use convenience is improved for the user, so that the user experience is improved.
In addition, the method and the device can respond to the operation that the user triggers the recovery interface, and automatically recover all the windows which are displayed in a minimized mode to the previous open state, so that the windows which are displayed in a minimized mode do not need to be manually recovered, the use convenience is further improved, and the user experience is also improved.
In addition, in the invention, all windows which are opened are not searched continuously, but the searching task is stopped when the window which is not opened currently is detected, at the moment, the thread or process where the searching task is located is released, and the memory resource occupied by the thread or process is released, so that the window display efficiency is improved, the use of system resources can be reduced, the system resources are saved, and the performance of the computing equipment is improved.
Fig. 3 shows a block diagram of a window minimizing apparatus 300 according to an embodiment of the present invention. The window minimizing apparatus 300 includes a timing detecting module 310, a window minimizing module 320 and a window recovering module 330, which are coupled in sequence.
The timing detection module 310 is adapted to search all opened windows and further adapted to detect whether there is a target window with an idle duration exceeding a preset duration in all opened windows.
The window minimizing module 320 is adapted to minimize the display of the target window when there is a target window with an idle duration exceeding a preset duration among all opened windows, and is further adapted to acquire and store window information of the target window.
The window restoration module 330 is adapted to restore display of all the minimally displayed windows based on the window information when an operation of triggering the restoration button is detected.
It should be noted that the operation principle of the window display apparatus 300 is similar to that of the window display method 200, and reference may be made to the description of the window display method 200 for relevant points, which is not repeated herein.
To better illustrate the complete implementation of the present invention, fig. 4 shows a flowchart of a window displaying method 400 according to another embodiment of the present invention, where the method 400 is suitable for being executed in an operating system run by the computing device 100 (such as the computing device shown in fig. 1), and further, the method 200 is suitable for being executed in a display server of the operating system. The window display method will be described in the following with reference to the window display apparatus 300. As shown in fig. 4, the method 400 includes steps S401 to S411.
In step S401, all opened windows are looked up by the timing detection module 310 traversing the attribute table.
In step S402, a request for acquiring the last selected historical time of the current window is sent to the application program corresponding to the current window through the timing detection module 310.
In step S403, the historical time of the last time the current window was selected, which is sent by the application program corresponding to the current window, is received by the timing detection module 310.
In step S404, the difference between the current time and the historical time is processed by the timing detection module 310 to obtain the idle duration of the current window.
In step S405, the timing detection module 310 detects whether there is a target window with idle duration exceeding a preset duration in all opened windows, if yes, step S406 is executed, and if not, step S409 is executed.
In step S406, an instruction to minimize the target window is sent to the window minimizing module 320 by the timing detecting module 310.
In step S407, the target window is minimized by the window minimizing module 320.
After the target window is minimized, in step S408, window information of the minimized target window is recorded by the window minimizing module 320 and stored to the configuration file.
In step S409, an instruction to restore the target window is sent to the window restoration module 330 through the window minimization module 320.
In step S410, information of all minimized windows is acquired from the configuration file by the window restoration module 330.
In step S411, the open state of the window before minimization is determined from the information of the minimized window that has been acquired by the window restoration module 330.
In step S412, all the minimized windows are restored to the window open state before minimization by the window restoration module 330 to restore the display target window and the window manually minimized by the user.
Therefore, through the steps S401 to S412, the windows which are opened and not selected for a long time are automatically minimized, and all the minimized windows are restored to the previous opening state.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the window display method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.
Claims (10)
1. A window display method executed in a display server of an operating system, the method comprising:
searching all opened windows;
detecting whether a target window with idle time length exceeding preset time length exists in all opened windows or not, wherein the idle time length is the time length of the window which is not selected;
if so, minimizing and displaying the target window;
and acquiring and storing the window information of the target window.
2. The method of claim 2, wherein the step of detecting whether a target window with an idle duration exceeding a preset duration exists in all the windows opened comprises:
acquiring the historical time of the last time any opened window is selected;
performing difference processing on the current time and the historical time to obtain the idle time of any opened window;
detecting whether the idle time of any opened window exceeds a preset time;
if the idle time length of the opened windows exceeds the preset time length, a target window with the idle time length exceeding the preset time length exists in all the opened windows;
if not, the target windows with the idle time length exceeding the preset time length do not exist in all the opened windows.
3. The method of claim 2, further comprising the steps of:
and when the first operation is detected, resuming to display the target window based on the window information.
4. The method of claim 3, wherein, when the first operation is detected, resuming display of the target window based on the window information comprises:
when a first operation is detected, acquiring window information of all minimally displayed windows, wherein the first operation is an operation of triggering a recovery button, and the all minimally displayed windows comprise the target window and a window manually minimally displayed by a user;
determining an open state of the window before the minimized display according to the acquired window information;
and restoring all the minimized windows to the window opening state before the minimized display so as to restore the windows which display the target window and are manually minimized and displayed by the user.
5. The method of any one of claims 1 to 4, wherein the window information comprises a name, a location, a size, a type, a display priority of a window.
6. The method according to any one of claims 1 to 5, wherein the display server stores therein an attribute table recording states of opened windows, and the step of searching all opened windows comprises:
and searching all opened windows by traversing the attribute table.
7. The method of claim 6, wherein the step of looking up all open windows by traversing the attribute table comprises:
polling the attribute table according to a preset time interval;
judging whether the content of the attribute table is empty or not, and if not, searching all opened windows by traversing the attribute table;
and if the content of the attribute table is empty, stopping the polling operation until the operation of opening the window is detected.
8. A window display apparatus, the apparatus comprising:
the timing detection module is suitable for searching all opened windows and detecting whether a target window with idle time length exceeding preset time length exists in all the opened windows or not, wherein the idle time length is the time length of the window which is not selected;
the window minimizing module is suitable for minimizing and displaying the target window when the target window with the idle time length exceeding the preset time length exists in all the opened windows, and is also suitable for acquiring and storing the window information of the target window;
and the window restoration module is suitable for restoring and displaying all the minimally displayed windows based on the window information when a first operation is detected, wherein the first operation is an operation of triggering a restoration button, and all the minimally displayed windows comprise the target window and the window manually minimally displayed by the user.
9. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-7.
10. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210044734.4A CN114416252A (en) | 2022-01-14 | 2022-01-14 | Window display method and device, computing equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210044734.4A CN114416252A (en) | 2022-01-14 | 2022-01-14 | Window display method and device, computing equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114416252A true CN114416252A (en) | 2022-04-29 |
Family
ID=81272614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210044734.4A Pending CN114416252A (en) | 2022-01-14 | 2022-01-14 | Window display method and device, computing equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114416252A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115586853A (en) * | 2022-11-24 | 2023-01-10 | 统信软件技术有限公司 | Window display method, computing device and storage medium |
CN116467037A (en) * | 2023-06-09 | 2023-07-21 | 成都融见软件科技有限公司 | Graphic user interface work state recovery method |
CN117056008A (en) * | 2023-10-10 | 2023-11-14 | 深圳安天网络安全技术有限公司 | Popup window interception method and device, equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002091418A (en) * | 2000-09-11 | 2002-03-27 | Casio Comput Co Ltd | Window display device and recording medium |
US20070143857A1 (en) * | 2005-12-19 | 2007-06-21 | Hazim Ansari | Method and System for Enabling Computer Systems to Be Responsive to Environmental Changes |
US20090150824A1 (en) * | 2007-12-11 | 2009-06-11 | Sanehiro Furuichi | Multiwindow system, security protection method, and security protection program for multiwindow system |
US20090183107A1 (en) * | 2008-01-16 | 2009-07-16 | Microsoft Corporation | Window minimization trigger |
CN104317475A (en) * | 2014-09-25 | 2015-01-28 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2022
- 2022-01-14 CN CN202210044734.4A patent/CN114416252A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002091418A (en) * | 2000-09-11 | 2002-03-27 | Casio Comput Co Ltd | Window display device and recording medium |
US20070143857A1 (en) * | 2005-12-19 | 2007-06-21 | Hazim Ansari | Method and System for Enabling Computer Systems to Be Responsive to Environmental Changes |
US20090150824A1 (en) * | 2007-12-11 | 2009-06-11 | Sanehiro Furuichi | Multiwindow system, security protection method, and security protection program for multiwindow system |
US20090183107A1 (en) * | 2008-01-16 | 2009-07-16 | Microsoft Corporation | Window minimization trigger |
CN104317475A (en) * | 2014-09-25 | 2015-01-28 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115586853A (en) * | 2022-11-24 | 2023-01-10 | 统信软件技术有限公司 | Window display method, computing device and storage medium |
CN115586853B (en) * | 2022-11-24 | 2024-02-27 | 统信软件技术有限公司 | Window display method, computing device and storage medium |
CN116467037A (en) * | 2023-06-09 | 2023-07-21 | 成都融见软件科技有限公司 | Graphic user interface work state recovery method |
CN116467037B (en) * | 2023-06-09 | 2023-09-22 | 成都融见软件科技有限公司 | Graphic user interface work state recovery method |
CN117056008A (en) * | 2023-10-10 | 2023-11-14 | 深圳安天网络安全技术有限公司 | Popup window interception method and device, equipment and medium |
CN117056008B (en) * | 2023-10-10 | 2024-02-02 | 深圳安天网络安全技术有限公司 | Popup window interception method and device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11822805B2 (en) | Method and terminal for reclaiming memory after freezing program | |
CN114416252A (en) | Window display method and device, computing equipment and storage medium | |
US20110066831A1 (en) | System and method for software initiated checkpoint operations | |
CN111563024B (en) | Method and device for monitoring container process on host machine and computing equipment | |
MXPA06013666A (en) | Method, software and apparatus for using application state history information when re-launching applications. | |
WO2021139131A1 (en) | File downloading method and related product | |
US20220035655A1 (en) | Method and Device for Anonymous Page Management, Terminal Device, and Readable Storage Medium | |
CN113867847A (en) | Abnormal plug-in processing method and device and computing equipment | |
CN113342452A (en) | Window display method, computing device and readable storage medium | |
CN113535483B (en) | File backup method and device and computing equipment | |
CN114461404B (en) | Process migration method, computing device and readable storage medium | |
CN114691226A (en) | Multi-operating-system switching operation method, computing device and storage medium | |
CN113254248B (en) | Fault diagnosis method, system and computing device | |
EP3230875B1 (en) | Adaptive memory access to local and non-local memories | |
CN113326214B (en) | Page cache management method, computing device and readable storage medium | |
CN114265533A (en) | Resource access method, computing device and storage medium | |
CN114153538A (en) | Window switching method, computing device and storage medium | |
CN113138778A (en) | Operating system installation method and computing device | |
CN112181516A (en) | Application software execution method and computing device | |
CN114461113B (en) | Interaction method, processing device and computing equipment based on task bar | |
CN114138556B (en) | Method, device, equipment and medium for data backup and recovery | |
CN113419998B (en) | Folder processing method, computing device and readable storage medium | |
CN113190455B (en) | Element positioning method and computing equipment | |
CN114021525A (en) | Full-text replacement method and device, text editor and computing equipment | |
CN113031908B (en) | Ordered data processing method and computing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |