CN115220826A - Window display method and electronic equipment - Google Patents

Window display method and electronic equipment Download PDF

Info

Publication number
CN115220826A
CN115220826A CN202110406595.0A CN202110406595A CN115220826A CN 115220826 A CN115220826 A CN 115220826A CN 202110406595 A CN202110406595 A CN 202110406595A CN 115220826 A CN115220826 A CN 115220826A
Authority
CN
China
Prior art keywords
window
electronic device
desktop
electronic equipment
windows
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
Application number
CN202110406595.0A
Other languages
Chinese (zh)
Inventor
尹剑锋
石超然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110406595.0A priority Critical patent/CN115220826A/en
Priority to PCT/CN2022/083912 priority patent/WO2022218150A1/en
Publication of CN115220826A publication Critical patent/CN115220826A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a window display method and electronic equipment, wherein the method comprises the following steps: the electronic equipment captures a first message of window change; the electronic equipment acquires a first target window with a stacking sequence according to the first message; the electronic equipment divides a display area of the desktop of the electronic equipment except the taskbar into a plurality of areas according to the vertex coordinates of the window in the desktop; the electronic device marks the plurality of regions respectively by using the window handle, wherein each region in the plurality of regions cannot be marked repeatedly; the electronic equipment determines a second target window visible to a user in the desktop according to the window handles of the plurality of area marks; the electronic equipment determines a third target window invisible to the user according to the first target window and the second target window; the electronic device minimizes the third target window. The technical scheme can reduce system resources occupied by the electronic equipment and reduce system power consumption.

Description

Window display method and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method for displaying a window and an electronic device.
Background
When a user uses an electronic device, for example, in an electronic device installed with a windows operating system (micro windows), a plurality of windows often need to be opened, each opened window occupies corresponding system resources, when one window is visually visible to the user, the system allocates relatively more resources to the window, and when one window is minimized, the system reduces the resources allocated to the minimized window, so as to save power consumption.
In some cases, when a user opens multiple windows, some of the windows may be obscured by overlying windows, causing them to be located in the display screen of the electronic device but not visible to the user, and still occupy significant system resources for such windows.
Disclosure of Invention
According to the technical scheme, the invisible window in the display desktop of the electronic equipment can be identified and minimized, system resources occupied by the electronic equipment can be reduced, and system power consumption is reduced.
In a first aspect, a method for displaying a window is provided, where the method is applied to an electronic device, and the method includes: the electronic device captures a first message of a window change; the electronic equipment acquires a first target window with a stacking sequence according to the first message; the electronic equipment divides a display area of the desktop of the electronic equipment except the taskbar into a plurality of areas according to the vertex coordinates of the window in the desktop; the electronic device marks the plurality of regions respectively using a window handle, wherein each region in the plurality of regions cannot be marked repeatedly; the electronic equipment determines a second target window visible to a user in the desktop according to the window handles of the plurality of area marks; the electronic equipment determines a third target window invisible to a user according to the first target window and the second target window; the electronic device minimizes the third target window.
Based on the embodiment of the application, after capturing the message of the window change, the electronic device can acquire a first target window opened by a user in the desktop, then divide the part of the desktop of the electronic device except the taskbar into a plurality of areas according to the vertex coordinates of the window in the desktop, mark the plurality of areas by using the window handle, determine a second target window visible to the user in the desktop, determine an invisible third target window by combining the first target window, and then minimize the third target window. The technical scheme can identify the invisible window in the display desktop of the electronic equipment and minimize the invisible window, so that the system resources occupied by the electronic equipment can be reduced, and the system power consumption is reduced.
With reference to the first aspect, in certain implementations of the first aspect, the acquiring, by the electronic device, a first target window having a stacking order according to the first message includes: the electronic equipment acquires the windows at the bottommost layer in the stacking sequence of the windows in the desktop except the desktop according to the first message; and the electronic equipment searches all windows upwards from the window at the bottommost layer according to the stacking sequence of the windows in the desktop to obtain the first target window, wherein the first target window is a window which can be displayed in response to the operation of a user.
Based on the embodiment of the application, the electronic equipment can obtain all windows which can be displayed in response to the operation of the user according to the stacking sequence of the windows in the desktop, and the subsequent calculation of invisible windows is facilitated.
With reference to the first aspect, in some implementations of the first aspect, the dividing, by the electronic device, a display area of a desktop of the electronic device, excluding a taskbar, into a plurality of areas according to vertex coordinates of a window in the desktop includes: the electronic equipment divides the length of the display area in a first direction into a plurality of parts according to the coordinates of the top point of the window in the desktop in the first direction; and the electronic equipment divides the length of the display area in the second direction into a plurality of parts according to the coordinates of the vertex of the window in the desktop in the second direction.
Based on the embodiment of the application, the display area of the desktop of the electronic device except the task bar is divided into a plurality of parts in the first direction according to the coordinates of the vertex of the window in the desktop in the first direction, and the display area of the desktop of the electronic device except the task bar is divided into a plurality of parts in the second direction according to the coordinates of the vertex of the window in the desktop in the second direction, so that the display area can be divided into a plurality of areas, and the subsequent calculation of the invisible window is facilitated.
With reference to the first aspect, in certain implementations of the first aspect, the marking, by the electronic device, the plurality of regions using a window handle, respectively, includes: and the electronic equipment sequentially marks downwards by using the window handles from the window at the topmost layer according to the stacking sequence of the windows in the desktop.
Based on the embodiment of the application, the window handles are used for marking the windows in the desktop from the topmost window in sequence according to the stacking sequence of the windows in the desktop, so that the windows visible to a user in the desktop can be determined.
With reference to the first aspect, in certain implementations of the first aspect, before the electronic device acquires the first target window having the stacking order according to the first message, the method further includes: the electronic device storing the first message in a first queue, the first queue holding one message at a time; the electronic device reads the first message from the first queue.
With reference to the first aspect, in certain implementations of the first aspect, an interval for the electronic device to read the first message from the first queue is greater than or equal to a first preset time length.
The technical scheme can avoid the misoperation caused by excessive message stacking.
With reference to the first aspect, in certain implementations of the first aspect, the third target window includes a first window and a second window, and the first window partially obstructs the second window, and the second target window includes a third window, before the electronic device minimizes the third target window, the method further includes: the electronic device inserts a fourth window after the first window; the electronic device inserts a fifth window after the second window; wherein the fourth window and the fifth window are not visible to a user.
According to the embodiment of the application, by inserting the additional window after the window needing to be minimized, the additional window can be used as a reference position of the minimized window in the window stacking sequence, so that the stacking sequence after the minimized window is restored is prevented from being disordered.
The position and the size of the fourth window in the desktop can be the same as or different from those of the first window, and the position and the size of the fifth window in the desktop can be the same as or different from those of the first window. The fourth window and the fifth window occupy little system resources.
Optionally, the fourth window may be inserted before the first window, and the fifth window may be inserted before the second window.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: in response to a first operation of a user, the electronic device inserts the second window after inserting the first window into the fifth window; the electronic equipment displays a first interface, wherein the first interface comprises the first window and the second window, and the first window partially obstructs the second window.
Based on the embodiment of the application, when the minimized first window and the minimized second window are restored, the minimized first window and the minimized second window are respectively inserted into the fourth window and the fifth window according to the original sequence, so that the positions of the minimized first window and the minimized second window in the stacking sequence of the windows can be ensured to be the same as those before the minimization, and the stacking sequence after the minimized windows are restored can be prevented from being disordered.
With reference to the first aspect, in certain implementations of the first aspect, the third target window includes a first window, the second target window includes a second window and a third window, and the third window partially obstructs the second window and the first window partially obstructs the second window, before the electronic device minimizes the third target window, the method further includes: the electronic equipment creates a sixth window, and the sixth window is positioned in front of the first window; wherein the vertex coordinates of the sixth window are located outside the desktop of the electronic device.
According to the embodiment of the application, the vertex coordinates of the sixth window are located outside the desktop of the electronic device, but the position of the sixth window in the window stacking sequence is located before the first window, and the sixth window can capture the operation of the system for finding the focus window when the third window disappears, so that the positions of the first window and the second window in the window stacking sequence are not influenced.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: in response to a second operation of the user, the electronic device displays a second interface, wherein the second interface comprises the first window and the second window, and the first window partially obstructs the second window.
Based on the embodiment of the present application, the second operation may be an operation of minimizing or closing the third window, and then the first window sum may be restored to the original position. The technical scheme can avoid the disorder of the stacking sequence after the reduction of the minimized window.
In a second aspect, an electronic device is provided that includes one or more processors; one or more memories; the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the method of window display as described in the first aspect and any one of its possible implementations to be performed.
In a third aspect, a chip is provided, where the chip includes a processor and a communication interface, where the communication interface is configured to receive a signal and transmit the signal to the processor, and the processor processes the signal, so that the method for displaying a window as described in the first aspect and any one of its possible implementations is performed.
In a fourth aspect, a computer-readable storage medium is provided, in which computer instructions are stored, which, when executed on a computer, cause a method of displaying a window as described in the first aspect and any one of its possible implementations to be performed.
In a fifth aspect, a computer program product is provided, which comprises computer instructions that, when run on an electronic device, cause the method of window display as described in the first aspect and any one of its possible implementations to be performed.
Drawings
FIG. 1 is a schematic diagram of a set of GUIs provided by an embodiment of the present application.
Fig. 2 is a schematic diagram of coordinates after discretization of the window in fig. 1.
Fig. 3 is a schematic diagram of handle marking on a window according to an embodiment of the present application.
FIG. 4 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
FIG. 5 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
Fig. 6 is a timing diagram of window display according to an embodiment of the present disclosure.
Fig. 7 is a schematic flowchart of a method for displaying a window according to an embodiment of the present application.
Fig. 8 is a schematic flow chart of the calculation of the invisible window in fig. 7.
Fig. 9 is a schematic flowchart of a method for displaying a window according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
The window display method in the embodiment of the present application may be applied to electronic devices such as a tablet computer, a notebook computer, a personal computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the present application does not limit the specific types of the electronic devices.
When a user uses an electronic device, a plurality of windows are often required to be opened, each opened window occupies corresponding system resources, when one window is visible to the user, the system allocates more resources to the window, and when one window is minimized, the system reduces the resources allocated to the minimized window so as to save power consumption.
In some cases, when a user opens multiple windows, some of the windows may be obscured by overlying windows, causing them to be located in the display screen of the electronic device but not visible to the user, and still occupy significant system resources for such windows.
In view of this, embodiments of the present application provide a method for displaying a window and an electronic device, which can minimize an invisible window, and when the minimized window needs to be restored, restore the minimized window to an original position, in this process, a user does not visually perceive, so that the use of the user is not affected, and meanwhile, the power consumption of the system is reduced.
Fig. 1 is a schematic diagram of a set of Graphical User Interfaces (GUIs) provided in an embodiment of the present application. Fig. 1 (a) to (b) show a process of discretizing a window in a display interface of an electronic device.
Referring to fig. 1 (a), the GUI may be a display desktop 210 of the electronic device 200, and the display desktop 210 may include a display area 211 and a taskbar 215 therein. The display area 211 comprises a window 212, a window 213 and a window 214, wherein the three windows in the display area 211 have a window stacking order (z-order) of the window 213, the window 212 and the window 214 from top to bottom, that is, the window 213 is at the uppermost layer of the display desktop and is a focus window.
The electronic device 200 may use the display desktop 210 as the whole canvas, and acquire all windows that can be displayed by all users operating with a keyboard or a mouse in the display desktop 210, where the windows may correspond to windows in each taskbar one by one.
Specifically, the electronic device 200 may use a system interface, such as a getnextwindow interface, to search all windows upward in the z-order after acquiring the window at the bottom of the z-order of windows in the display desktop 210, so that all windows that the user can display by operating with a keyboard or a mouse can be acquired.
For example, if the window 213 is a file manager window, the window 212 is a music window, and the window 213 is a computer administrator window, the windows opened in the taskbar have a file manager, music and computer administrator. The electronic device 200 may acquire that the windows that the user can actually operate are the three windows and the z-order of the three windows.
Referring to (b) of fig. 1, the GUI shows a process of discretizing the display area 211 according to a displayed window. In (a) of fig. 1, the electronic apparatus 200 has acquired three windows displayed within the display area 211 and the z-order of the three windows, and the electronic apparatus 200 may divide the display area into a plurality of areas according to the vertex coordinates of the three windows.
As shown in fig. 1 (B), the four vertex coordinates of the window 213 are A1, A2, A3, and A4, the four vertex coordinates of the window 212 are B1, B2, B3, and B4, and the four vertex coordinates of the window 213 are C1, C2, C3, and C4, respectively. Then, in the x-axis direction of the display area 211, the abscissa of the three windows is divided into 7 areas, and in the y-axis direction of the display area 211, the abscissa of the three windows is divided into 6 areas, so that the entire display area 211 is divided into 42 small areas, and each area belongs to the same window. Therefore, more pixel points (e.g., 1280 × 760) in the display region 211 can be mapped to the coordinates corresponding to the 42 small regions, thereby reducing the complexity of data amount calculation.
It should be understood that, in fig. 1 (b), the lower boundary of the window 214 overlaps the upper boundary of the taskbar, for example, by one pixel, and thus, in the y-axis direction of the display region 211, it may be divided into 6 regions in total.
In some examples, the lower boundary of the window 214 may not overlap with the upper boundary of the task bar, and at this time, the display area 211 may be divided into 7 areas in the y-axis direction, which is not limited in this embodiment of the present invention.
Fig. 2 is a schematic diagram of coordinates after discretization of the window in fig. 1.
Referring to fig. 2, after the display area 211 is divided into 42 small areas, the 42 small areas may be corresponding to the discretized coordinate system, an area from coordinates (0, 0) to coordinates (7, 6) in fig. 2 corresponds to the display area 211 in fig. 1, an area from coordinates a3 (2, 2) to coordinates a2 (5, 4) in fig. 2 corresponds to the window 212 in fig. 1, an area from coordinates b3 (1, 1) to coordinates b2 (4, 5) in fig. 2 corresponds to the window 213 in fig. 1, and an area from coordinates c3 (3, 0) to coordinates c2 (6, 3) in fig. 2 corresponds to the window 214 in fig. 1.
Through the setting, more pixel points in the display area 211 can be represented by the discretized coordinates, and when the window in the display area 211 is calculated by the electronic device 200, only 42 areas in the discretized coordinate system need to be calculated, and the coordinates of each pixel point in the original display area 211 do not need to be considered, so that the complexity of data quantity calculation is effectively reduced.
After discretizing the vertex coordinates of the windows in display area 211, the areas where the windows are located can be labeled with the window handle, starting with the window at the top-most z-order (i.e., the focus window), according to the z-order of the windows, each area cannot be labeled repeatedly.
Fig. 3 is a schematic diagram of handle marking on a window according to an embodiment of the present application.
Referring to fig. 3, according to the z-order of windows, the window 213 at the top layer is marked, and assuming that the handle of the window 213 is 1, the coordinates of the region where the window 213 is located are marked as 1 in 6 regions from (2, 2) to (5, 4). Then, the window 212 located at the second layer in the z-order sequence is marked, and assuming that the handle of the window 212 is 2, since the coordinates of the region where the window 212 is located are 12 regions from (1, 1) to (4, 5), but 4 of the regions are already marked as 1, and each region cannot be repeatedly marked, the remaining 8 regions are marked as 2. The window 214 at the bottom of the z-order sequence is then marked, and assuming that the handle of the window 214 is 3, since the coordinates of the region where the window 214 is located are 9 regions from (3, 0) to (6, 3), but 2 of the regions have been marked as 1,1 region is marked as 2, and each region cannot be repeatedly marked, the remaining 6 regions are marked as 3.
For the desktop window, i.e. the display area 211, assuming that the handle of the desktop window is 4, the coordinates of the area where the display area 211 is located are from (0, 0) to (7, 6), and a total of 42 areas but 6 areas are already marked as 1, 8 areas are marked as 2, 6 areas are marked as 3, and each area cannot be repeatedly marked, so the rest 22 areas are marked as 4.
After all regions have been marked, the electronic device 200 may traverse all regions, counting the number of different window handles marked, and thus may know the number of visible windows in the display region 211.
For example, as shown in fig. 3, after marking 42 regions in the display region 211, counting 4 different window handles from 1 to 4, it can be calculated that there are 3 visible windows besides the desktop window, i.e. the display region 211. The user who initially obtains in connection with the electronic device 200 can obtain which windows are invisible by operating all the displayed windows with a keyboard and a mouse. The number of invisible windows can be obtained by subtracting the number of visible windows from the number of all windows initially obtained, and which windows are invisible can be obtained by comparing all windows initially obtained with the visible windows.
It should be understood that, in this embodiment, the handle of the window 213 is 1, the handle of the window 212 is 2, the handle of the window 214 is 3, and the handle of the desktop window is 4 are taken as examples for description, in other examples, the handles of the windows may also be represented by other values, which is not limited in this embodiment of the present application.
In the embodiment of the application, for the invisible window, the electronic equipment can temporarily minimize the invisible window by calling the system interface so as to reduce the occupied system resources, when the user operates the window to enable the original position of the minimized window to be visible, the window is restored in time, and in the process, the user does not visually sense the window, so that the use of the user is not influenced, and meanwhile, the power consumption of the system is reduced.
The operation of minimizing the invisible window may be implemented by sending a message to the window, or may be implemented by using an external interface window native to the windows system.
If a window is to be restored from the minimization, a user may use operations such as combining a shortcut key, clicking a mouse, and the like to implement, but in any way, the window is made to be a focus window, and the restoration of the minimized window in the embodiment of the present application is to restore the window to a state before minimization, that is, to restore the minimized window according to the z-order of the original window.
For example, window a obscures window B so that it is minimized, and when the user moves window a so that it can reveal a portion, the restored window B cannot precede window a, and if window B returns to the front of window a, the user may feel uncomfortable, and therefore, window B still needs to follow window a after restoration, i.e., the focus window is still window a.
The method for displaying the window provided by the embodiment of the application can realize that the minimized window is restored according to the z-order sequence of the original window, but under some special conditions, for example, when the speed of clicking the window by a user is high, the z-order sequence of the window may be disordered.
Although the windows system may restore the window from the minimized state to the nearest window state including the nearest position and the z-order by setting some parameters, such as the SW _ shownactivate parameter, when providing the windows interface, the z-order of the window may be easily disarranged, that is, the restored window jumps to the forefront of all windows, but the window is not the focus window, although the restored window may not become the focus window.
For example, when the window a is moved by the user so that the window B is minimized, the restored window B is before the window a, but the user's input or the like is still in the window a, which may be uncomfortable to the user.
For the case of a small probability that the z-order of the window is out of order, the embodiment of the present application provides a method for displaying a window, which can avoid the above problem.
FIG. 4 is a schematic diagram of another set of GUIs provided by an embodiment of the present application. Among them, processes of minimizing an invisible window and restoring a minimized window are shown from (a) to (e) in fig. 4.
Referring to fig. 4 (a), a window 312 and a window 313 are included in the display area 311 of the electronic device, wherein the window 312 is located above the window 313, that is, the focus window is the window 312, and the window 312 partially obstructs the window 313. When the electronic device detects an operation of opening the window 314 by the user, a GUI as shown in (b) of fig. 4 may be displayed.
Referring to (b) in fig. 4, the user opens the window 314, and the window 314 completely occludes the window 312 and the window 313, i.e., the focus window of the display region 311 is 314.
Referring to (c) of fig. 4, at this time, a window 312b may be inserted after the window 312, the size and position of the window 312b are the same as those of the window 312, and there is no other window between the window 312 and the window 312 b; the window 313b is inserted after the window 313, and the size and position of the window 313b are the same as those of the window 313, and no other window is arranged between the window 313 and the window 313b. Window 312b, window 313b are used for subsequent calculations of whether window 312 and window 313 require restoration, after window 312 is minimized, window 312b may replace the position of window 312 in window z-order, and after window 313 is minimized, window 313b may replace the position of window 313 in window z-order.
In addition, the window attributes of the window 312b and the window 313b can be set so that the window 312b and the window 313b are invisible to the user, for example, the window 312b or 313b does not appear in the taskbar or in the preview mode, and the user cannot operate the window, for example, the user cannot operate the window 312b or 313b by using a keyboard, a mouse, a shortcut key, or the like, and the window 312b or the window 313b does not occupy system resources substantially.
After the insertion of the window 312b and the window 313b is completed, a minimization operation is performed on the window 312 and the window 313 to reduce the system resources occupied by the windows and save the system power consumption.
Referring to (d) of fig. 4, after the window 312 and the window 313 are minimized, the window 312b and the window 313b are still in the original positions, and then the user performs a minimizing or closing operation on the window 314, so that the electronic device may display the GUI as shown in (e) of fig. 4.
Referring to fig. 4 (e), a window 312 and a window 313 are displayed in the display region 311 of the electronic device, and the window 312 is positioned above the window 313.
After the window 314 is closed or minimized, the electronic device needs to restore the minimized window 312 and window 313, and then when restoring the window 312, after inserting the window 312 into the window 312b, and when restoring the window 313, after inserting the window 313 into the window 313b or before, the positions of the window 312 and the window 313 in the z-order sequence of the windows can be ensured to be consistent with the sequence before minimization, so that the problem of the z-order sequence disorder of the minimized window during restoration can be avoided.
Specifically, the electronic device may perform the above-described functions by calling a system interface. For example, after calling the window interface, the electronic device calls the setwindows interface to execute the above functions.
It should be understood that in practical applications, window 312 may include multiple suggestive windows, and then when window 312b is inserted, window 312b is inserted after window 312, meaning window 312b is inserted after window 312 and its suggestive window, so that other visual effects problems may be avoided. The same is true for window 313.
It should be understood that two invisible windows are illustrated in this example, and in other examples, the number of invisible windows may be more, which is not limited in the embodiment of the present application.
According to the embodiment of the application, by inserting the additional window A1 after the invisible window A, when the window A is minimized, the window A1 can replace the position of the window A in the z-order sequence of the window A, and when the window A needs to be reduced, the window A is inserted after or before the window A1, so that the position of the window A in the z-order sequence of the window A can be ensured to be consistent with the sequence before the minimization.
In some cases, after the frontmost window in the window Z-order disappears, such as minimized or closed, the system will find the next frontmost window in the window Z-order and set it as the focus window, but this operation and the operation of minimizing restore are almost synchronized, which may cause the window Z-order to be confused.
For example, the windows from top to bottom in the z-order sequence of the windows are window a, window B and window C, and window B partially occludes window C, window a completely occludes window B, and partially occludes window C, that is, window B is minimized, so when the window a is minimized or closed so that window B is visible, the system searches for the next focus window again, since window B is performing the restore operation at this time, the system will find window C as the focus window with a high probability, and the end result may be that window C is before window B, which may cause discomfort to the user.
In view of this, embodiments of the present disclosure provide a method for displaying a window, which can avoid the above problems.
FIG. 5 is a schematic diagram of another set of GUIs provided by an embodiment of the present application. Among them, processes of minimizing the invisible window and restoring the minimized window are shown from (a) to (d) in fig. 5.
Referring to fig. 5 (a), a window 412 and a window 413 are included in a display area 411 of the electronic device, where the window 412 is located above the window 413, that is, the focus window is the window 412, and the window 412 partially blocks the window 413. When the electronic device detects an operation of opening the window 414 by the user, a GUI as shown in (b) of fig. 5 may be displayed.
Referring to fig. 5 (b), the user opens the window 414, and the window 414 completely occludes the window 412 and partially occludes the window 413, i.e., the focus window of the display area 411 is 414 and the window 413 is partially visible.
Referring to (c) of fig. 5, at this time, a window 415 may be created, and the window 415 may be set to capture a request of the system to find a focus window, and then the window 415 is inserted above the window 412, and then the window 412 is subjected to a minimization process to save system resources.
For this window 415, the parameters of this window 415 can be set so that its coordinates are outside the display area 411, but the position of this window 415 in the window z-order is above the window 412, so after the window 414 is minimized or closed, the focus window that the system finds is the window 415, and not the window 412. When the electronic device detects an operation of the user to close or minimize the window 414, a GUI as shown in (d) of fig. 5 may be displayed.
Referring to fig. 5 (d), the GUI is a display area 411 of the electronic device, the display area 411 includes a window 412 and a window 413, and the window 412 partially obstructs the window 413. I.e., the window 412 is located in the window z-order in the order prior to minimization, thereby avoiding window z-order confusion.
In some examples, when there are multiple completely obscured windows, this may be accomplished by simply inserting the window 415 over the top window in the z-order of windows in the multiple obscured windows.
It should be understood that the window 415 in the embodiment of the present application is invisible to the user, for example, the window 415 does not appear in the taskbar or in the preview mode, and the user cannot operate the window, for example, the user cannot operate the window 415 using the keyboard, the mouse, the shortcut keys, etc., and the window 415 does not substantially occupy system resources.
Based on the embodiment of the application, when the window A is completely shielded, a window B can be created, the window B is inserted into the window A, the window A is subjected to minimization processing, when the window A needs to be restored, the window B can be found when the system searches a focus window, the window A can be restored normally, and the disorder of the z-order sequence of the window is avoided.
Fig. 6 is a timing diagram of window display according to an embodiment of the present disclosure, which may include steps 501 to 511.
501, hijacking a message calling a system Application Programming Interface (API) function.
For example, a message calling a system API is monitored using a hook (hook), which may first retrieve the message when an API is called.
When the API is called, the API call message is sent 502 to the system message monitor module.
503, the system message monitoring module sends the API call message to the window monitoring module.
The window monitor sends a production event message to the flow control queue according to the API call message 504.
For example, the production event may be a minimize window, a move window, and the like.
The flow control queue holds the last received message 505.
It should be appreciated that there is only one place in the flow control queue for holding one production event message.
And 506, the flow control queue sends the window change event corresponding to the production event message to the window occlusion calculation module.
507, the window occlusion computation module obtains snapshots of all current windows.
For example, all windows in the desktop window z-order are obtained.
The window occlusion computation module filters all windows 508.
The window calculation module may filter the windows acquired in step 507 to obtain all windows that can be operated by the user through a mouse or a keyboard, where the windows correspond to the windows opened in the taskbar one to one.
509, the window occlusion calculation module calculates the visible window or the invisible window.
The window occlusion calculation module may determine all visible windows through the discretization algorithm and the handle mark, and determine the invisible windows by combining all the windows obtained in step 508.
The window occlusion computation module generates 510 a window.
Illustratively, as shown in FIG. 4, the window occlusion computation module generates a window 312b and a window 313b.
Illustratively, as shown in FIG. 5, the window occlusion computation module generates a window 415.
And 511, the window occlusion calculation module sends the minimization instruction or the reduction instruction to the minimized scene and strategy module.
Illustratively, as shown in FIG. 4, the window occlusion computation module sends a minimize instruction for a completely occluded window 312 to the minimize scene and policy module. Or when the window 312 needs to be restored, the restoration instruction of the window 312 is sent to the minimized scene and policy module.
And 512, the minimization scene and strategy module executes minimization operation on the window according to the minimization instruction or executes reduction operation on the window according to the reduction instruction.
Illustratively, as shown in FIG. 4, the minimize scenario and policy module performs a minimization operation on the window 312 according to the minimization instruction of the window 312. Or when the window 312 needs to be restored, the restoring operation is performed on the window 312 according to the restoring instruction of the window 312.
It should be understood that, in the embodiment of the present application, an execution sequence of the foregoing steps 501 to 512 is not limited, or several steps may be executed simultaneously, and the like.
Fig. 7 is a schematic flowchart of a window display method provided in an embodiment of the present application. The method may include steps 601 to 604.
610, hook monitors the system window change message and sends the message to the queue.
Wherein, the window change message of the system is monitored by using the hook, and the message is sent to the queue after the hook reaches the window change message.
The window change message is entered into a queue 620.
The queue only has one position for storing a window change message, the message in the queue is continuously read after each calculation is completed, if the message exists in the queue, the calculation is continued, but a preset time period is required to be separated between two calculations, for example, the preset time period may be 30 milliseconds (ms). Thereby avoiding message stacking caused by processing too many messages at the same time.
The invisible window is calculated 630 according to a window occlusion algorithm.
The detailed algorithm steps in this step 630 can be seen in the related description in fig. 8.
And 640, executing the strategy.
The execution strategy module can execute corresponding strategies according to the result of the window occlusion algorithm, for example, minimizing the invisible window, and executing a restore operation on the minimized window when the minimized window needs to be restored.
Fig. 8 is a schematic flow chart of the calculation of the invisible window in fig. 7. The method may include steps 701 through 704.
631, taking snapshots of all windows.
For example, by obtaining the lowest window in the z-order of desktop windows, a system interface such as getnextwindow is used to find all windows up in the z-order of windows.
632, filter target windows, corresponding to windows in the taskbar.
By setting a filtering condition, all the windows obtained in step 631 can be filtered, so as to obtain a target window that can be displayed by a user through keyboard or mouse operation, and the target window corresponds to a window opened in the taskbar one by one.
At 633, invisible windows are calculated based on the window stack-up and the positional relationship.
According to the window stacking sequence and the position relation of the windows, the invisible windows can be calculated. For example, discretizing the window by the discretization algorithm, and performing handle labeling and the like on the position of the window after discretization to determine all visible windows, and determining the invisible window in combination with the target window obtained in step 632.
634, the final calculation result is sent.
And sending the result obtained by the calculation in the step 633 to an execution strategy module. For example, the execution policy module may be the minimization scenario and policy module in step 512 described above.
Fig. 9 is a schematic flowchart of a method for displaying a window according to an embodiment of the present application. The method may be applied to an electronic device, and the method may include steps 710 to 770.
The electronic device captures a first message of a window change 710.
The first message may be various messages of window change, for example, various system messages triggered by minimizing a window, maximizing a window, closing a window, moving a window, and the like.
And 720, the electronic equipment acquires a first target window with a stacking sequence according to the first message.
The first target window may be a plurality of windows having a certain stacking order, and the first target window may be a window that may be displayed within a desktop in response to a user's manipulation.
For example, the first target window may be a plurality of windows opened by the user, where the plurality of windows have portions of the windows displayed in the desktop, portions of the windows are minimized, or portions of the windows are in the desktop but are obscured from view by other windows, resulting in being invisible to the user, and so on.
And 730, dividing a display area of the desktop of the electronic equipment except the taskbar into a plurality of areas by the electronic equipment according to the vertex coordinates of the window in the desktop.
Illustratively, referring to (b) in fig. 1, the electronic device divides the display area 211 into a plurality of areas according to the vertex coordinates of the window 212, the window 213, and the window 214 within the desktop.
740, the electronic device marks the plurality of regions separately using the window handle, each region of the plurality of regions being incapable of being repeatedly marked.
It should be understood that the window handles correspond one-to-one to the windows, i.e., the window handles are the same for the same window.
Illustratively, referring to FIG. 3, multiple regions are marked separately using a window handle.
750, the electronic device determines a second target window visible to a user within the desktop according to the window handle of the plurality of region markers.
It should be understood that, since the window handles correspond to the windows one to one, after the areas are marked, it is only necessary to go through all the window handles one time, and according to how many different window handles, it can be determined how many visible windows exist and which window the visible window is.
Illustratively, referring to fig. 3, if 4 different window handles are marked, it can be determined that there are 4 visible windows, wherein one is a desktop window, and there are 3 windows visible to the user in the desktop except the desktop window, i.e. the second target window is the visible 3 windows.
760, the electronic device determines a third target window invisible to the user according to the first target window and the second target window.
After determining the visible second target window, the electronic device, in combination with the first target window, may determine which windows are not visible, i.e. the third target window. The third target window may be one or multiple, which is not limited in this embodiment of the present application.
770, the electronic device minimizes the third target window.
After determining the third target window invisible to the user, the electronic device minimizes the third target window to save system resources.
Based on the embodiment of the application, the electronic device can acquire a first target window opened by a user in the desktop after capturing a message of window change, then divide the part of the desktop of the electronic device except for the task bar into a plurality of areas according to the vertex coordinates of the window in the desktop, mark the plurality of areas by using the window handle, determine a second target window visible to the user in the desktop, determine an invisible third target window by combining the first target window, and then minimize the third target window. The technical scheme can identify the invisible window in the display desktop of the electronic equipment and minimize the invisible window, so that the system resources occupied by the electronic equipment can be reduced, and the system power consumption can be reduced.
It should be understood that, the present application does not limit the execution sequence of the foregoing steps 710 to 770, or several of the steps may be executed simultaneously, and the like, which is not limited in this embodiment of the present application.
Optionally, the acquiring, by the electronic device, a first target window having a stacking order according to the first message includes: the electronic equipment acquires the windows at the bottommost layer in the stacking sequence of the windows in the desktop except the desktop according to the first message; and the electronic equipment searches all windows upwards from the window at the bottommost layer according to the stacking sequence of the windows in the desktop to obtain the first target window, wherein the first target window is a window which can be displayed in response to the operation of a user.
Illustratively, referring to fig. 1 (a), the window 212, the window 213, and the window 214 are in the order of the window 213, the window 212, and the window 214 in the stacking order of the windows. The first target window is window 213, window 212, window 214.
It should be appreciated that the position of the desktop window in the window stacking order is the bottom most layer.
Based on the embodiment of the application, the electronic equipment can obtain all windows which can be displayed in response to the operation of the user according to the stacking sequence of the windows in the desktop, and the subsequent calculation of invisible windows is facilitated.
Optionally, the dividing, by the electronic device, a display area of the desktop of the electronic device, except for the taskbar, into a plurality of areas according to the vertex coordinates of the window in the desktop includes: the electronic equipment divides the length of the display area in the first direction into a plurality of parts according to the coordinates of the vertex of the window in the desktop in the first direction; and the electronic equipment divides the length of the display area in the second direction into a plurality of parts according to the coordinates of the vertex of the window in the desktop in the second direction.
For example, referring to fig. 1 (b), the first direction may be parallel to a direction of a rotation axis of the electronic device (or a horizontal axis direction), in which the electronic device divides the display area 211 into 7 parts according to coordinates of vertexes of the window 212, the window 213, and the window 214 in the desktop in the first direction. The second direction may be a direction perpendicular to a rotation axis of the electronic device (or a longitudinal axis direction), in which the electronic device divides the display area 211 into 6 parts according to coordinates of vertexes of the window 212, the window 213, and the window 214 in the desktop in the second direction, and then the whole display area 211 is divided into 42 areas.
Based on the embodiment of the application, the display area of the desktop of the electronic device except the task bar is divided into a plurality of parts in the first direction according to the coordinates of the vertex of the window in the desktop in the first direction, and the display area of the desktop of the electronic device except the task bar is divided into a plurality of parts in the second direction according to the coordinates of the vertex of the window in the desktop in the second direction, so that the display area can be divided into a plurality of areas, and the subsequent calculation of the invisible window is facilitated.
Optionally, the electronic device marks the plurality of regions using the window handle, respectively, including: and the electronic equipment sequentially marks downwards by using the window handles from the window at the topmost layer according to the stacking sequence of the windows in the desktop.
The electronic device sequentially marks the windows in the desktop from the topmost window downwards using the window handle according to the stacking sequence of the windows in the desktop, for example, referring to fig. 3, in the stacking sequence of the windows, the window 213 is located at the topmost layer, and the window 213 is marked using the window handle of the window 213, for example, if the window handle is 1, then all the 6 regions where the window 213 is located are marked as 1. The windows 212 and 214 located after window 213 are then marked separately, each region cannot be repeatedly marked until all regions are marked.
Based on the embodiment of the application, the window handles are used for marking sequentially from the topmost window according to the stacking sequence of the windows in the desktop, so that the windows visible to a user in the desktop can be determined.
Optionally, before the electronic device obtains the first target window with the stacking order according to the first message, the method further includes: the electronic device storing the first message in a first queue, the first queue holding one message at a time; the electronic device reads the first message from the first queue.
For example, the first queue may be the flow control queue module in the above embodiment.
Optionally, an interval for the electronic device to read the first message from the first queue is greater than or equal to a first preset duration.
For example, the first preset duration may be 30ms.
The technical scheme can avoid the phenomenon of misoperation caused by excessive message stacking.
Optionally, the third target window includes a first window and a second window, and the first window partially obstructs the second window, and the second target window includes a third window, before the electronic device minimizes the third target window, the method further includes: the electronic device inserts a fourth window after the first window; the electronic device inserts a fifth window after the second window; wherein the fourth window and the fifth window are not visible to a user.
Exemplarily, referring to (a) to (c) of fig. 4, the third target window includes a first window and a second window, for example, the first window may be the window 312, the second window may be the window 313, the second target window includes a third window may be the window 314, the fourth window may be the window 312b, and the fifth window may be the window 313b.
The position and the size of the fourth window in the desktop can be the same as or different from those of the first window; the position and size of the fifth window in the desktop can be the same as or different from the first window.
It should be understood that the window attributes of the fourth window and the fifth window may be set so that the fourth window and the fifth window are invisible to a user, for example, the fourth window and the fifth window do not appear in a taskbar or in a preview mode, and the user cannot operate the windows, for example, the user cannot operate the fourth window and the fifth window using a keyboard, a mouse, a shortcut key, and the like, and the fourth window and the fifth window do not substantially occupy system resources.
According to the embodiment of the application, by inserting the additional window after the window needing to be minimized, the additional window can be used as a reference position of the minimized window in the window stacking sequence, so that the stacking sequence after the minimized window is restored is prevented from being disordered.
Optionally, the fourth window may be inserted before the first window, and the fifth window may be inserted before the second window.
Optionally, the method further comprises: in response to a first operation of a user, the electronic equipment inserts the first window into the fourth window and then inserts the second window into the fifth window; the electronic equipment displays a first interface, wherein the first interface comprises the first window and the second window, and the first window partially obstructs the second window.
The first operation may be an operation of the user minimizing the third window, closing the third window, or moving the third window so that the first window and the second window are visible to the user, and the electronic device needs to restore the first window and the second window from minimization.
Illustratively, referring to fig. 4, the first interface may be a display interface of the electronic device in (e) of fig. 4, when the third window 314 is minimized or closed, the first window 312 and the second window 313 are displayed in the desktop of the electronic device, and the first window 312 partially obstructs the second window 313, i.e., the restored positions of the first window and the second window are the same as before the minimization.
Based on the embodiment of the application, when the minimized first window and the minimized second window are restored, the minimized first window and the minimized second window are respectively inserted into the fourth window and the fifth window according to the original sequence, so that the positions of the minimized first window and the minimized second window in the stacking sequence of the windows can be ensured to be the same as those before the minimization, and the stacking sequence after the minimized windows are restored can be prevented from being disordered.
Optionally, before the electronic device minimizes the third target window, the method further includes: the electronic equipment creates a sixth window, and the sixth window is positioned in front of the first window; wherein the vertex coordinates of the sixth window are outside the desktop of the electronic device.
Illustratively, referring to fig. 5, a first window of the third target windows may be a window 412, a second window of the second target windows may be a window 413, and a second window of the second target windows may be a window 414. The sixth window may be the window 415 with the vertex coordinates of the window 415 being outside the desktop of the electronic device, i.e., the window 415 is not displayed in the desktop, but the position of the window 415 in the window stacking order is before the first window, i.e., the window 412.
According to the embodiment of the application, the vertex coordinates of the sixth window are located outside the desktop of the electronic device, but the position of the sixth window in the window stacking sequence is located before the first window, and the sixth window can capture the operation of the system for finding the focus window when the third window disappears, so that the positions of the first window and the second window in the window stacking sequence are not influenced.
Optionally, the method further comprises: in response to a second operation of the user, the electronic device displays a second interface, wherein the second interface comprises the first window and the second window, and the first window partially obstructs the second window.
The second operation may be an operation in which the user minimizes the third window, closes the third window, or moves the third window so that the first window is visible to the user.
Illustratively, referring to fig. 5, the second interface may be a display interface of the electronic device in (d) in fig. 5. After the third window 414 is closed or minimized, the first window 412 and the second window 413 are displayed in the desktop of the electronic device, and the first window 412 partially blocks the second window 413, i.e., the position of the first window is the same as that before the minimization.
Based on the embodiment of the present application, the second operation may be an operation of minimizing or closing the third window, and then the first window sum may be restored to the original position. The technical scheme can avoid the disorder of the stacking sequence after the reduction of the minimized window.
An embodiment of the present application further provides an electronic device, including one or more processors; one or more memories; the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the method of window display to be performed as described in any one of the preceding possible implementations.
An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, where the communication interface is configured to receive a signal and transmit the signal to the processor, and the processor processes the signal, so that the method for displaying a window as described in any one of the foregoing possible implementations is performed.
The present embodiment also provides a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are executed on an electronic device, the electronic device is caused to execute the relevant method steps to implement the method for displaying a window in the foregoing embodiment.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the method for displaying a window in the foregoing embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored by the memory, so that the chip can execute the method for displaying the window in the above method embodiments.
The electronic device, the computer-readable storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, and therefore, the beneficial effects that can be achieved by the electronic device, the computer-readable storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A method for window display, which is applied to an electronic device, and comprises the following steps:
the electronic device captures a first message of a window change;
the electronic equipment acquires a first target window with a stacking sequence according to the first message;
the electronic equipment divides a display area of the desktop of the electronic equipment except the taskbar into a plurality of areas according to the vertex coordinates of the window in the desktop;
the electronic device marks the plurality of regions respectively by using the window handle, wherein each region in the plurality of regions cannot be repeatedly marked;
the electronic equipment determines a second target window visible to a user in the desktop according to the window handles of the plurality of area marks;
the electronic equipment determines a third target window invisible to a user according to the first target window and the second target window;
the electronic device minimizes the third target window.
2. The method of claim 1, wherein the electronic device obtains a first target window having a stacking order according to the first message, comprising:
the electronic equipment acquires the windows at the bottommost layer in the stacking sequence of the windows in the desktop except the desktop according to the first message;
and the electronic equipment searches all windows upwards from the window at the bottommost layer according to the stacking sequence of the windows in the desktop to obtain the first target window, wherein the first target window is a window which can be displayed in response to the operation of a user.
3. The method of claim 1 or 2, wherein the electronic device divides a display area of the desktop of the electronic device except the taskbar into a plurality of areas according to the vertex coordinates of the window in the desktop, comprising:
the electronic equipment divides the length of the display area in the first direction into a plurality of parts according to the coordinates of the vertex of the window in the desktop in the first direction;
the electronic equipment divides the length of the display area in the second direction into a plurality of parts according to the coordinates of the top point of the window in the desktop in the second direction.
4. The method of any of claims 1-3, wherein the electronic device separately marks the plurality of regions using a window handle, comprising:
and the electronic equipment sequentially marks downwards by using the window handles from the window at the topmost layer according to the stacking sequence of the windows in the desktop.
5. The method of any of claims 1-4, wherein before the electronic device obtains the first target window having a stacking order from the first message, the method further comprises:
the electronic device storing the first message in a first queue, the first queue holding one message at a time;
the electronic device reads the first message from the first queue.
6. The method of claim 5, wherein the interval between the electronic device reading the first message from the first queue is greater than or equal to a first preset duration.
7. The method of any of claims 1-6, wherein the third target window comprises a first window and a second window, and wherein the first window partially occludes the second window, wherein the second target window comprises a third window, and wherein before the electronic device minimizes the third target window, the method further comprises:
the electronic device inserts a fourth window after the first window;
the electronic device inserts a fifth window after the second window;
wherein the fourth window and the fifth window are not visible to a user.
8. The method of claim 7, further comprising:
in response to a first operation of a user, the electronic equipment inserts the first window into the fourth window and then inserts the second window into the fifth window;
the electronic equipment displays a first interface, wherein the first interface comprises the first window and the second window, and the first window partially obstructs the second window.
9. The method of any of claims 1-6, wherein the third target window comprises a first window, the second target window comprises a second window and a third window, and the third window partially occludes the second window and the first window partially occludes the second window, the method further comprising, before the electronic device minimizes the third target window:
the electronic equipment creates a sixth window, and the sixth window is positioned in front of the first window;
wherein the vertex coordinates of the sixth window are located outside the desktop of the electronic device.
10. The method of claim 9, further comprising:
in response to a second operation of the user, the electronic device displays a second interface, wherein the second interface comprises the first window and the second window, and the first window partially obstructs the second window.
11. An electronic device comprising one or more processors; one or more memories; the one or more memories store one or more computer programs, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause performance of the method of window display of any of claims 1-10.
12. A chip, characterized in that it comprises a processor and a communication interface for receiving signals and transmitting them to the processor, which processes them so that the method of window display according to any one of claims 1 to 10 is performed.
13. A computer-readable storage medium having stored thereon computer instructions which, when run on a computer, cause the method of window display of any one of claims 1-10 to be performed.
CN202110406595.0A 2021-04-15 2021-04-15 Window display method and electronic equipment Pending CN115220826A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110406595.0A CN115220826A (en) 2021-04-15 2021-04-15 Window display method and electronic equipment
PCT/CN2022/083912 WO2022218150A1 (en) 2021-04-15 2022-03-30 Window display method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110406595.0A CN115220826A (en) 2021-04-15 2021-04-15 Window display method and electronic equipment

Publications (1)

Publication Number Publication Date
CN115220826A true CN115220826A (en) 2022-10-21

Family

ID=83605661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110406595.0A Pending CN115220826A (en) 2021-04-15 2021-04-15 Window display method and electronic equipment

Country Status (2)

Country Link
CN (1) CN115220826A (en)
WO (1) WO2022218150A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1323450C (en) * 1989-02-06 1993-10-19 Larry K. Loucks Depth buffer clipping for window management
JPH06124184A (en) * 1992-10-12 1994-05-06 Sharp Corp Multiwindow display device
JPH08320777A (en) * 1995-05-25 1996-12-03 Canon Inc Processor and method for information processing
CN101996072B (en) * 2009-08-21 2013-12-25 联想(北京)有限公司 Window management method and computer of operating system

Also Published As

Publication number Publication date
WO2022218150A1 (en) 2022-10-20

Similar Documents

Publication Publication Date Title
US10082948B2 (en) Apparatus and method for grouping and displaying icons on a screen
EP2635954B1 (en) Notification group touch gesture dismissal techniques
JP3412444B2 (en) Window focus shift postponement method, computer system and recording medium
CN108829314B (en) Screenshot selecting interface selection method, device, equipment and storage medium
US20130044136A1 (en) Customization of an Immersive Environment
US20050088410A1 (en) Dynamically changing cursor for user interface
US20050257168A1 (en) System and method for monitoring application response and providing visual treatment
US20090096810A1 (en) Method for selectively remoting windows
US10627980B2 (en) Organization mode support mechanisms
US9372590B2 (en) Magnifier panning interface for natural input devices
CN104992094A (en) Terminal operation method and terminal
CN110865753B (en) Application message notification method and device
CN107025033A (en) A kind of method and apparatus for adjusting screen intensity
KR19990036584A (en) Navigation and screen viewing device and method in Windows based environment
US6850254B1 (en) System and method for defining parameter relationship on user interfaces
WO2016022634A1 (en) Display and management of application icons
CN113268182A (en) Application icon management method and electronic equipment
CN115220826A (en) Window display method and electronic equipment
JP2009237659A (en) Operation log information display system
CN110413167A (en) A kind of the screenshotss method and terminal device of terminal device
JP5918902B2 (en) Remote display area with input lens that draws each area of the graphical user interface
CN114253648B (en) Remote application virtualization method and device
WO2019024507A1 (en) Touch control method and device, and terminal
CN105204717B (en) A kind of management figure calibration method and terminal
JP3232468B2 (en) Icon menu display method and display 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