Display method, electronic equipment, storage medium and computer program product

By detecting user operations in the display interface of the electronic device and displaying transition windows related to the area or display windows in the overlapping area, the solid color or style transition window problem that affects coherence when starting an application or sub-app is solved, and a better user experience is achieved.

CN120179119APending Publication Date: 2025-06-20HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311753180.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-18
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

In electronic devices, when a user starts an application or sub-app, a solid color or color transition window will appear on the display interface that affects coherence, resulting in poor user experience.

Method used

By detecting user operations, first display the transition window related to the area or display window in the overlapping area of ​​the display interface, and the display parameters are set based on the pixel value of the overlapping area to improve the continuity of window display.

Benefits of technology

This method effectively improves the continuity of window display, improves user experience, and reduces the difference between the transition window and the original display content and the new display content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120179119A_ABST
    Figure CN120179119A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of display, and provides a display method, electronic equipment, a storage medium and a computer program product.The method comprises the steps that when it is detected that a user clicks an application or a sub-application in an application menu, an overlapping area overlapped with a display window corresponding to the application or the sub-application in a display interface is determined; based on the pixel information of the overlapping area or the pixel information of the display window, display parameters of the transition window are set and displayed. Therefore, the window display continuity can be improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technologies, and in particular, to a display method, an electronic device, a storage medium, and a computer program product. Background Art

[0002] When a user newly starts some applications in an electronic device or sub-applications in the application menu of some applications, before the display interface of the electronic device displays the display window corresponding to the application or sub-application, there will be a period of time to display a solid-color transition window or a multicolored transition window. In some cases, the transition window has a large difference from the original display content of the display interface (such as the desktop, the display window corresponding to the previously started application), and the transition window also has a large difference from the display window corresponding to the newly started application or sub-application, thus affecting the continuity of the display and further affecting the user experience. Summary of the Invention

[0003] To solve the problem of display continuity, embodiments of the present application provide a display method, an electronic device, a storage medium, and a computer program product.

[0004] In a first aspect, the present application provides a display method applied to an electronic device, including: displaying a first display interface; detecting a first operation of the user, where the first operation is used to trigger the display of a first display window on the first display interface; sequentially displaying a first transition window of the first display window and the first display window, where the display parameters of the first transition window are related to a first overlapping area or the first display window, and the first overlapping area is an area in the first display interface that overlaps with the first display window.

[0005] It can be understood that based on the above solution, by first displaying the first transition window related to the first overlapping area or the first display window and then displaying the first display window, the continuity of window display can be improved and the user experience can be enhanced.

[0006] It can be understood that the first display interface (hereinafter referred to as the display interface) can be the display interface of an electronic device installed with an operating system that supports the wayland protocol. For example, the display interface of a laptop computer installed with a Linux system that supports the wayland protocol.

[0007] It can be understood that the first display window can be the display window corresponding to a first application, where the first application can be an application using the X11 protocol. For example, or and other applications.

[0008] In some alternative examples of the first aspect, the first display window is the display window corresponding to the first application, and the first application is an application using the X11 protocol; the first transition window is a window generated based on an operating system supporting the wayland protocol.

[0009] In the embodiments of the present application, an electronic device installed with an operating system supporting the wayland protocol can use the display method mentioned in the embodiments of the present application to solve the problem that when a user starts an application using the X11 protocol or a sub-application in the application menu of an application using the X11 protocol on the electronic device, a solid-color or patterned transition window that affects display coherence is presented.

[0010] In some alternative examples of the first aspect, the first overlapping area is determined in the following manner: obtain a window creation request corresponding to a first operation, where the window creation request carries first position information where the first display window is to be displayed on the first display interface; based on the first position information where the first display window is to be displayed on the first display interface, determine the first overlapping area.

[0011] In some alternative examples, when it is detected that the user clicks on the first application, the electronic device can obtain an application window creation request corresponding to the click operation, where the application window creation request can carry position information where the display window corresponding to the application using the X11 protocol is to be displayed on the display interface of the electronic device, and the application window creation request can be X_CopyArea(). When it is detected that the user clicks on a sub-application in the application menu of the first application, a sub-application window creation request corresponding to the click operation can be obtained, where the sub-application window creation request can carry position information where the display window corresponding to the sub-application is to be displayed on the display interface of the electronic device.

[0012] In some alternative examples of the first aspect, it further includes: obtaining pixel values of pixels in the first overlapping area that overlaps with the first display window in the first display interface; setting display parameters of the first transition window according to the pixel values of pixels in the first overlapping area.

[0013] In the embodiments of the present application, by setting the display parameters of the first transition window according to the pixel values of pixels in the first overlapping area that overlaps with the first display window in the first display interface, the first transition window can be made more similar to the original display content of the first display interface, which can improve the coherence of the display and enhance the user experience.

[0014] In some alternative examples of the first aspect, setting the display parameters of the first transition window according to the pixel values of the pixels in the first overlapping area includes: setting the pixel values of the pixels in the first overlapping area as the display parameters of the corresponding pixels in the first transition window, or setting the difference between the pixel values of the pixels in the first overlapping area and the pre-set processed pixel values as the display parameters of the corresponding pixels in the first transition window.

[0015] In some alternative examples of the first aspect, obtaining the pixel values of the pixels in the first overlapping area in the following way: if there are pixel values of the pixels where the mouse cursor is located in the first overlapping area, obtaining the pixel values of the pixels in the first overlapping area except for the pixel values of the pixels where the mouse cursor is located.

[0016] In the embodiments of the present application, by only obtaining the pixel information of the pixels in the first overlapping area except for the pixel information of the pixels where the mouse cursor is located, it can be ensured that the transition window does not contain the mouse cursor. In this way, the processing amount can be reduced, and it can be avoided that the pixel information obtained again processes the pixel information of the pixels where the mouse cursor is located. It can also be applied to the scenario where the mouse cursor is located at any position on the display interface.

[0017] In some alternative examples of the first aspect, displaying the first transition window of the first display window includes: obtaining the pixel values of the pixels in the first display window; setting the display parameters of the first transition window according to the pixel values of the pixels in the first display window.

[0018] In the embodiments of the present application, by setting the display parameters of the first transition window according to the pixel values of the pixels in the first display interface, the display content of the first transition window can be made more similar to that of the first display window, which can improve the display coherence and enhance the user experience.

[0019] In some alternative examples of the first aspect, setting the display parameters of the first transition window according to the pixel values of the pixels in the first display window includes: setting the pixel values of the pixels in the first display window as the display parameters of the corresponding pixels in the first transition window, or setting the difference between the pixel values of the pixels in the first display window and the pre-set processed pixel values as the display parameters of the corresponding pixels in the first transition window.

[0020] In some alternative examples of the first aspect, the display content of the first display interface includes the desktop and / or the second display window corresponding to the second application, where the second display window is a display window displayed when the second operation of the user is detected, and the time of the second operation is earlier than the time of the first operation.

[0021] In some alternative examples of the first aspect, the display duration of the first transition window is within the duration range [0.1s, 1s].

[0022] It can be understood that the display duration of the first transition window can be 0.1s, 0.2s, 0.5s, 0.6s, 0.8s, 1s, etc., and the embodiments of the present application do not make specific limitations.

[0023] In a second aspect, the present application provides a display method, which is applied to an electronic device installed with an operating system supporting the wayland protocol. The method includes: displaying a first display interface; detecting a first operation of a user, where the first operation is used to trigger the display of a first display window on the first display interface, and the first display window is a display window corresponding to an application using the X11 protocol; sequentially displaying a first transition window and the first display window of the first display window, where the display parameters of the first transition window are related to the first overlapping area or the first display window, and the first overlapping area is an area in the first display interface that overlaps with the first display window.

[0024] It can be understood that based on the above solution, by first displaying the first transition window related to the first overlapping area or the first display window and then displaying the first display window, the continuity of window display can be improved and the user experience can be improved.

[0025] It can be understood that the first display interface (hereinafter referred to as the display interface) can be the display interface of an electronic device installed with an operating system supporting the wayland protocol. For example, the display interface of a laptop computer installed with a Linux system supporting the wayland protocol.

[0026] It can be understood that the first display window can be a display window corresponding to a first application, where the first application can be an application using the X11 protocol. For example, or and other applications.

[0027] In some optional examples of the second aspect, the first overlapping area is determined by the following method: obtaining a window creation request corresponding to the first operation, where the window creation request carries first position information where the first display window is to be displayed on the first display interface; determining the first overlapping area based on the first position information where the first display window is to be displayed on the first display interface.

[0028] In some alternative examples, when it is detected that the user clicks on the first application, the electronic device may obtain an application window creation request corresponding to the click operation. Among them, the application window creation request may carry the position information where the display window corresponding to the application using the X11 protocol is to be preliminarily displayed on the display interface of the electronic device, and the application window creation request may be X_CopyArea(). When it is detected that the user clicks on a sub-application in the application menu of the first application, a sub-application window creation request corresponding to the click operation may be obtained. Among them, the sub-application window creation request may carry the position information where the display window corresponding to the sub-application is to be preliminarily displayed on the display interface of the electronic device.

[0029] In some alternative examples of the second aspect, it further includes: obtaining the pixel values of the pixels in the first overlapping area that overlaps with the first display window in the first display interface; setting the display parameters of the first transition window according to the pixel values of the pixels in the first overlapping area.

[0030] In the embodiments of the present application, by setting the display parameters of the first transition window according to the pixel values of the pixels in the first overlapping area that overlaps with the first display window in the first display interface, the first transition window can be made more similar to the original display content of the first display interface, which can improve the display coherence and enhance the user experience.

[0031] In some alternative examples of the second aspect, setting the display parameters of the first transition window according to the pixel values of the pixels in the first overlapping area includes: setting the pixel values of the pixels in the first overlapping area as the display parameters of the corresponding pixels in the first transition window, or setting the difference between the pixel values of the pixels in the first overlapping area and the pre-set processed pixel values as the display parameters of the corresponding pixels in the first transition window.

[0032] In some alternative examples of the second aspect, the pixel values of the pixels in the first overlapping area are obtained in the following way: if there are pixel values of the pixels where the mouse cursor is located in the first overlapping area, obtain the pixel values of the pixels in the first overlapping area except for the pixel values of the pixels where the mouse cursor is located.

[0033] In the embodiments of the present application, by only obtaining the pixel information of the pixels in the first overlapping area except for the pixel information of the pixels where the mouse cursor is located, it can be ensured that the transition window does not contain the mouse cursor. In this way, the processing amount can be reduced, and it is avoided that the pixel information obtained again processes the pixel information of the pixels where the mouse cursor is located. It can also be applicable to the scenario where the mouse cursor is located at any position on the display interface.

[0034] In some alternative examples of the second aspect, displaying the first transition window of the first display window includes: obtaining the pixel values of the pixels in the first display window; setting the display parameters of the first transition window according to the pixel values of the pixels in the first display window.

[0035] In the embodiments of the present application, by setting the display parameters of the first transition window according to the pixel values of the pixels in the first display interface, the display content of the first transition window can be made more similar to that of the first display window, which can improve the display coherence and enhance the user experience.

[0036] In some alternative examples of the second aspect, setting the display parameters of the first transition window according to the pixel values of the pixels in the first display window includes: setting the pixel values of the pixels in the first display window as the display parameters of the corresponding pixels in the first transition window, or setting the difference between the pixel values of the pixels in the first display window and the pre-set processing pixel values as the display parameters of the corresponding pixels in the first transition window.

[0037] In some alternative examples of the second aspect, the display content of the first display interface includes the desktop and / or the second display window corresponding to the second application, where the second display window is a display window displayed when a second operation of the user is detected, and the time of the second operation is earlier than the time of the first operation.

[0038] In some alternative examples of the second aspect, the display duration of the first transition window is within the duration range [0.1s, 1s].

[0039] It can be understood that the display duration of the first transition window can be 0.1s, 0.2s, 0.5s, 0.6s, 0.8s, 1s, etc., and the embodiments of the present application do not make specific limitations.

[0040] In a third aspect, the present application provides an electronic device, including: a memory for storing a computer program executed by one or more processors of the electronic device, and a processor, which is one of the one or more processors of the electronic device, for executing the display method mentioned in the present application.

[0041] It can be understood that a series of computer programs can form instructions, that is, instructions refer to a collection of computer programs.

[0042] In a fourth aspect, the present application provides a readable storage medium, on which a computer program is stored, and when the computer program is executed on an electronic device, the electronic device is caused to execute the display method mentioned in the present application.

[0043] In a fifth aspect, the embodiments of the present application provide a computer program product, including: a non-volatile computer-readable storage medium, and the non-volatile computer-readable storage medium contains computer program code for executing the display method mentioned in the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1A According to some examples of the present application, a schematic diagram of an application scenario of the first display method is shown;

[0045] Figure 1B According to some examples of the present application, a schematic diagram of the application scenario of the second display method is shown;

[0046] Figure 2 According to some examples of the present application, a schematic diagram of the application scenario of the third display method is shown;

[0047] Figure 3 According to some examples of the present application, a schematic flowchart of a window display method is shown;

[0048] Figure 4 According to some examples of the present application, a schematic diagram of a window display is shown;

[0049] Figure 5 According to some examples of the present application, a schematic flowchart of a display method is shown;

[0050] Figure 6 According to some examples of the present application, a schematic flowchart of a method for displaying a transition window is shown;

[0051] Figure 7 According to some examples of the present application, a schematic flowchart of a method for obtaining pixel information of an overlapping area is shown;

[0052] Figure 8A According to some examples of the present application, a schematic diagram of the structure of a display system is shown;

[0053] Figure 8B According to some examples of the present application, a schematic flowchart of another display method is shown;

[0054] Figure 9 According to some examples of the present application, a block diagram of the hardware structure of a computer is shown;

[0055] Figure 10 According to some examples of the present application, a block diagram of the software system architecture of a computer is shown;

[0056] Figure 11 According to some examples of the present application, a schematic diagram of the first display method is shown;

[0057] Figure 12 According to some examples of the present application, a schematic diagram of the second display method is shown;

[0058] Figure 13 According to some examples of the present application, a schematic diagram of the third display method is shown. Detailed implementation manners

[0059] Exemplary embodiments of the present application include, but are not limited to, a display method, an electronic device, a storage medium, and a computer program product.

[0060] It can be understood that the display method mentioned in the embodiments of the present application can be applied to mobile phones (including foldable mobile phones and straight mobile phones), tablet computers, desktop computers (desktop computers), handheld computers, laptop computers (laptop computers), ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), portable android devices (PADs), personal digital assistants (PDAs), handheld devices with wireless communication functions, computing devices, in-vehicle devices or wearable devices, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc., mobile terminals or fixed terminals, and electronic devices such as power banks that have a window display requirement.

[0061] Specifically, the display method mentioned in the embodiments of the present application can be applied to a personal computer that installs an operating system supporting the wayland protocol, so as to solve the problem that when a user starts an application using the X11 protocol or a sub-application in the application menu of an application using the X11 protocol on a personal computer that installs an operating system supporting the wayland protocol, a solid color or variegated transition window that affects the display coherence is presented.

[0062] For the convenience of description, hereinafter, taking a laptop computer as an example of the electronic device, the application scenarios of the display method mentioned in some embodiments will be introduced.

[0063] It can be understood that the first display interface can refer to the display interface of the laptop computer at the first moment, the second display interface can refer to the display interface of the laptop computer at the second moment, and the third display interface can refer to the display interface of the laptop computer at the third moment. Among them, the first moment is earlier than the second moment, and the second moment is earlier than the third moment.

[0064] In some alternative examples, the display content of the first display interface may be the desktop, and the display content of the second display interface may include a part of the desktop and the display window of the newly launched application. The display content of the second display interface may also include the display window of the newly launched application. In some other alternative examples, the display content of the first display interface may be a part of the desktop and the display window of the application, and the display content of the second display interface may include a part of the desktop, the display window of the application, and the display window of the sub-application of the newly launched application.

[0065] Figure 1A Shows a schematic diagram of an application scenario of a display method. As Figure 1A shown, the display content of the first display interface 110 of the laptop 100 may be a golden fish in a blue sea and the icon corresponding to Application A. When the user starts Application A in the first display interface 110 of the laptop 100 through operations such as clicking, touching, or voice, the laptop 100 may respond to the user's operation, switch from the first display interface 110 to the second display interface 120, and display a solid-color transition window 121 on the second display interface 120, and then switch from the second display interface 120 to the third display interface 130, and display the display window 131 corresponding to Application A on the third display interface 130. For example, display a search window with a white background and black text on the third display interface 130.

[0066] Figure 1B Shows a schematic diagram of an application scenario of another display method. Different from Figure 1A that, Figure 1B a flowery transition window 121 is displayed on the second display interface 120.

[0067] Figure 2 Shows a schematic diagram of an application scenario of another display method. As Figure 2 shown, the display content of the first display interface 210 of the laptop 200 may be a golden fish in a blue sea and the display window 211 corresponding to Application A. When the user starts the sub-application a of Application A in the first display interface 210 of the laptop 200 through operations such as clicking, touching, or voice, the laptop 200 may respond to the user's operation, switch from the first display interface 210 to the second display interface 220, and display a solid-color or flowery transition window 221 on the second display interface 220, and then switch from the second display interface 220 to the third display interface 230, and display the display window 231 corresponding to the sub-application a on the third display interface 230. For example, display thumbnail windows of Picture 1, Picture 2... on the third display interface 230.

[0068] In the above display method, the difference between the second display interface and the first display interface is relatively large, and the difference between the second display interface and the third display interface is also relatively large, resulting in discontinuous switching of the display interface.

[0069] The window display method mentioned above is introduced below.

[0070] Figure 3 The flowchart of a window display method is shown. This method can be executed by an electronic device, such as Figure 3 As shown, the window display method may include:

[0071] 301: Display a display interface.

[0072] It can be understood that the display content of the display interface can be the desktop. The display content of the display interface can also be the display window corresponding to the application launched by the user through operations such as clicking, touching, and voice at the first moment.

[0073] It can be understood that the display interface can be the display interface of an electronic device installed with an operating system that supports the wayland protocol, such as a laptop computer installed with a Linux system that supports the wayland protocol.

[0074] 302: Detect that the user clicks on an application or a sub-application in the application menu.

[0075] It can be understood that the application can refer to the application launched by the user through operations such as clicking, touching, and voice at the second moment, where the second moment is later than the first moment. It can be understood that the application can refer to an application using the X11 protocol.

[0076] In some optional instances, if it is detected that the user clicks on an application, a window creation request corresponding to the click operation can be obtained, where the window creation request for the application can carry the position information where the display window corresponding to the application is to be pre-displayed on the display interface of the electronic device. If it is detected that the user clicks on a sub-application in the application menu, a sub-window creation request corresponding to the click operation can be obtained, where the sub-window creation request for the sub-application can carry the position information where the display window corresponding to the sub-application is to be pre-displayed on the display interface of the electronic device.

[0077] In some optional instances, both the above-mentioned window creation request for the application and the sub-window creation request can be referred to as window creation requests.

[0078] 303: Create a transition window.

[0079] It can be understood that the electronic device can receive a window creation request and create a transition window for the display window corresponding to the application or sub-application based on the position information where the display window corresponding to the application or sub-application in the window creation request is to be displayed on the display interface of the electronic device.

[0080] 304: Set the pixel information of the transition window.

[0081] It can be understood that the pixel information stored in advance can be obtained from the memory and set as the pixel information of the transition window for the display window corresponding to the application or sub-application. Among them, a set of pixel values can be stored in advance in the memory, and the pixel values in the set of pixel values can be different values. For example, the pixel values in the set of pixel values can be random values. The pixel values in the set of pixel values can also be the same value. For example, the pixel values in the set of pixel values can all be (0, 0, 0) or (255, 255, 255).

[0082] 305: Determine the overlapping area in the display interface that overlaps with the display window corresponding to the application or sub-application.

[0083] It can be understood that when the electronic device receives a window creation request, the overlapping area in the display interface that overlaps with the display window corresponding to the application or sub-application can be determined based on the position information where the display window corresponding to the application or sub-application in the window creation request is to be displayed on the display interface of the electronic device.

[0084] 306: Display the transition window in the overlapping area of the display interface.

[0085] In some optional examples, when the random values in the set of pixel values are set as the pixel information of the transition window, a colored transition window can be displayed, such as a screen with distorted colors. When the same value in the set of pixel values is set as the pixel information of the transition window, a solid-color transition window can be displayed, such as a black screen window, a white screen window, or a blue screen window.

[0086] It can be understood that the display duration of the transition window can be within the interval [0.1s, 1s]. For example, the transition window can be continuously displayed for 0.1s, and the transition window can also be continuously displayed for 1s.

[0087] 307: Display the display window corresponding to the application or sub-application in the overlapping area of the display interface.

[0088] In the above window display method, there are significant differences between the original display content (i.e., the desktop) in the overlapping area of the transition window and the display interface, and there are also significant differences between the new display content (i.e., the display window corresponding to the application or sub-application) in the overlapping area of the transition window and the display interface. That is, there are significant differences between the black screen window and the golden fish in the blue sea, and there are also significant differences between the black screen window and the search page with black characters on a white background, which will affect the continuity of window display and thus affect the user experience.

[0089] An embodiment of the present application provides a display method. In this method, after determining the overlapping area in the display interface that overlaps with the display window corresponding to the application or sub-application, based on the pixel information of the overlapping area or the pixel information of the display window, the display parameters of the transition window are set and displayed. In this way, the continuity of window display can be improved and the user experience can be enhanced.

[0090] In some optional examples, the pixel values of the overlapping area can be set as the pixel values of the pixels in the transition window, or the difference between the pixel values of the display window and the pre-set processed pixel values can be set as the pixel values of the pixels in the transition window, or the pixel values of the outline of the display window can be set as the pixel values of the pixels in the transition window, and the difference between the pixel values of the overlapping area and the pre-set processed pixel values can be set as the pixel values of the pixels in the transition window.

[0091] For example, Figure 4 Fig. shows a schematic diagram of window display. At the first moment, the display interface of the laptop 400 can display the desktop 410 and the icon corresponding to Application A. When the user starts Application A through operations such as clicking, touching, or voice at the second moment, at the second moment, a transition window 420 can be displayed in the area where Application A is to be displayed on the desktop 410 of the laptop 400. Among them, the pixel values of the transition window 420 are the same as the pixel values of the area where Application A is to be displayed on the desktop 410 of the laptop 400, that is, the display content of the transition window 420 is the same as the display content of the overlapping area. Then, at the third moment, the display window 430 corresponding to Application A can be displayed in the area where Application A is to be displayed on the desktop 410 of the laptop 400. Among them, the first moment is earlier than the second moment, and the second moment is earlier than the third moment.

[0092] In some optional examples, the application can refer to an application using the X11 protocol, simply referred to as an X11 application. The transition window can be a display window generated based on an operating system that supports the wayland protocol. Among them, the X11 protocol can be converted to the wayland protocol based on the Xwayland service, so that an application using the X11 protocol can be used on an electronic device installed with an operating system that supports the wayland protocol.

[0093] The display method mentioned in the embodiments of the present application will be introduced below. Figure 5 The flowchart of a display method is shown. This method can be executed by an electronic device, such as Figure 5 shown, and this display method may include:

[0094] 501: Display a display interface.

[0095] It can be understood that the display content of the display interface can be the desktop. The display content of the display interface can also be the display window corresponding to the application launched by the user through operations such as clicking, touching, and voice at the first moment.

[0096] In some optional examples, the application launched by the user through operations such as clicking, touching, and voice at the first moment can be an X11 application.

[0097] It can be understood that the display interface can be the display interface of an electronic device installed with an operating system that supports the wayland protocol, such as a laptop installed with a Linux system that supports the wayland protocol.

[0098] 502: Detect the user's operations on the application or sub-application in the display interface.

[0099] It can be understood that the application can refer to the application launched by the user through operations such as clicking, touching, and voice at the second moment, where the second moment is later than the first moment. It can be understood that the application can refer to an application using the X11 protocol.

[0100] In some optional examples, the application that the user can launch through operations such as clicking, touching, and voice at the second moment can be an X11 application. For example, the user can launch an X11 application on the display interface of the electronic device through operations such as clicking, touching, and voice. For example, the user can click on or icons of X11 applications such as 360 Security Guard or Sunflower to launch X11 applications such as 360 Security Guard or Sunflower.

[0101] In some other optional examples, the user can also launch a sub-application of the X11 application through operations such as clicking, touching, and voice at the second moment. For example, the user can click the settings pop-up button of the X11 application on the display interface of the electronic device to launch the sub-application of the X11 application.

[0102] It can be understood that when it is detected that the user operates on the application or sub-application in the display interface, it can proceed to step 503. Otherwise, step 502 can be repeated until it is detected that the user operates on the application or sub-application in the display interface.

[0103] In some alternative examples, it can be understood that when detecting that a user clicks on the X11 application, the electronic device can obtain an application window creation request corresponding to the click operation. Among them, the application window creation request can carry the position information where the display window corresponding to the X11 application is prepared to be displayed on the display interface of the electronic device, and the application window creation request can be X_CopyArea(). When detecting that the user clicks on a sub-application in the X11 application menu, a sub-application window creation request corresponding to the click operation can be obtained. Among them, the sub-application window creation request can carry the position information where the display window corresponding to the sub-application is prepared to be displayed on the display interface of the electronic device.

[0104] 503: Determine the overlapping area in the display interface that overlaps with the display window corresponding to the application or sub-application.

[0105] It can be understood that when the electronic device receives a window creation request, it can determine the overlapping area in the display interface that overlaps with the display window corresponding to the application or sub-application based on the position information where the display window corresponding to the application or sub-application is prepared to be displayed on the display interface of the electronic device.

[0106] 504: Display a transition window in the overlapping area, where the display content of the transition window is related to the display content of the overlapping area, or related to the display content of the display window corresponding to the application or sub-application.

[0107] It can be understood that the pixel values of the overlapping area can be set to the pixel values of the pixels in the transition window, or the difference between the pixel values of the display window and the pre-set processed pixel values can be set to the pixel values of the pixels in the transition window, or the pixel values of the outline of the display window can be set to the pixel values of the pixels in the transition window, and the difference between the pixel values of the overlapping area and the pre-set processed pixel values can be set to the pixel values of the pixels in the transition window.

[0108] It can be understood that after setting the pixel values of the overlapping area to the pixel values of the pixels in the transition window, a transition window can be generated and sent to the compositor, and the compositor synthesizes and displays the display content of the display interface and the transition window.

[0109] In some alternative examples, the compositor can be a Kin compositor.

[0110] 505: Display the display window corresponding to the application or sub-application in the overlapping area.

[0111] It can be understood that after continuously displaying the transition window for a period of time, the display window corresponding to the application or sub-application can be displayed in the overlapping area in the display interface of the electronic device that overlaps with the display window corresponding to the application or sub-application.

[0112] It can be understood that during the process of displaying the transition window, the pixel information of the display window corresponding to the application or sub-application can be obtained from the memory, and the display window corresponding to the application or sub-application can be generated, and then the display window is sent to the compositor, and the compositor synthesizes and displays the display content and the display window of the display interface.

[0113] In the embodiments of the present application, by setting the pixel information of the transition window based on the pixel information of the overlapping area or the pixel information of the display window and performing the display. In this way, the difference between the transition window and the original display content of the display interface can be reduced, or the difference between the transition window and the new display content of the display window can be reduced, which can improve the continuity of window display and improve the user experience.

[0114] Figure 6 The flowchart of a method for displaying a transition window is shown. This method can be executed by an electronic device, such as Figure 6 As shown, the method for displaying the transition window may include:

[0115] 601: Detect that the user clicks on an application or a sub-application in the application menu.

[0116] In some optional examples, the user can start the X11 application on the display interface of the electronic device through operations such as clicking, touching, or voice. For example, the user can click on the 360 Security Guard or Sunflower and other X11 applications on the display interface of the electronic device to start the 360 Security Guard or Sunflower and other X11 applications.

[0117] In some other optional examples, the user can also start the sub-application of the X11 application on the display interface of the electronic device through operations such as clicking, touching, or voice. For example, the user can click on the setting pop-up button of the X11 application on the display interface of the electronic device to start the sub-application of the X11 application.

[0118] It can be understood that when detecting that the user clicks on the X11 application, the electronic device can obtain the application window creation request corresponding to the click operation. Among them, the application window creation request can carry the position information where the display window corresponding to the X11 application is to be displayed on the display interface of the electronic device, and the application window creation request can be X_CopyArea(). When detecting that the user clicks on the sub-application in the application menu of the X11 application, the sub-application window creation request corresponding to the click operation can be obtained. Among them, the sub-application window creation request can carry the position information where the display window corresponding to the sub-application is to be displayed on the display interface of the electronic device.

[0119] In some optional examples, both the above-mentioned application window creation request and sub-application window creation request can be referred to as window creation requests.

[0120] 602: Determine whether there is an overlapping area between the display content of the display interface and the display window corresponding to the application or sub-application.

[0121] It can be understood that when the electronic device receives a window creation request, it can determine whether there is an overlapping area between the display content of the display interface and the display window corresponding to the application or sub-application in the application menu based on the position information of the application or sub-application to be pre-displayed on the display interface of the electronic device in the window creation request and the position information of the display content (such as the desktop, the display window corresponding to the previously launched application) in the display interface. In the case where it is determined that there is an overlapping area, step 603 can be entered, otherwise step 602 can be repeated.

[0122] 603: Obtain the overlapping area between the display content of the display interface and the display window corresponding to the application or sub-application.

[0123] 604: Obtain the pixel information of the overlapping area.

[0124] It can be understood that the pixel information of each pixel in the overlapping area except the pixel where the mouse cursor is located can be obtained.

[0125] In the embodiments of the present application, by only obtaining the pixel information of the pixels in the overlapping area except the pixel where the mouse cursor is located, it can be ensured that the transition window does not contain the mouse cursor. In this way, the processing amount can be reduced, and it can be avoided that the pixel information obtained again processes the pixel information of the pixel where the mouse cursor is located. It can also be applicable to the scenario where the mouse cursor is located at any position on the display interface. Among them, the specific implementation manner of obtaining the pixel information of the overlapping area will be described in detail in Figure 7 will be described in detail.

[0126] 605: Set the pixel information of the transition window according to the pixel information of the overlapping area.

[0127] In some optional examples, the pixel value of the overlapping area can be set as the pixel value of the pixel in the transition window.

[0128] 606: Display the transition window in the overlapping area.

[0129] It can be understood that after the pixel value of the overlapping area is set as the pixel value of the pixel in the transition window, a transition window can be generated and sent to the compositor. The compositor synthesizes and displays the display content of the display interface and the transition window to display the transition window in the overlapping area.

[0130] In some optional examples, the compositor can be a Kin compositor.

[0131] In the embodiments of the present application, by setting the pixel information of the transition window based on the pixel information of the overlapping area and displaying it. In this way, the difference between the transition window and the original display content of the display interface can be reduced, the continuity of window display can be improved, and the user experience can be enhanced.

[0132] The following describes the specific implementation for obtaining the pixel information of the overlapping area. Figure 7 The flowchart of a method for obtaining the pixel information of the overlapping area is shown. This method can be executed by an electronic device, such as Figure 7 As shown, the method for obtaining the pixel information of the overlapping area may include:

[0133] 701: Create a storage space for the front screen pixel information and a storage space for the rear screen pixel information.

[0134] It can be understood that the display interface of the electronic device may include a front screen and a rear screen, and the display contents of the front screen and the rear screen are different. For example, the front screen displays the mouse cursor, and the rear screen displays the desktop.

[0135] In some optional examples, a storage space for storing the front screen pixel information and a storage space for storing the rear screen pixel information may be applied for from the storage device. Among them, both the storage space for storing the front screen pixel information and the storage space for storing the rear screen pixel information have identifiers, and the identifiers of the storage space for storing the front screen pixel information and the storage space for storing the rear screen pixel information are different. In addition, the storage space for storing the front screen pixel information may be larger than the storage space for storing the rear screen pixel information, or the storage space for storing the front screen pixel information may be equal to the storage space for storing the rear screen pixel information.

[0136] It can be understood that the front screen pixel information may include the pixel information of the pixel where the mouse cursor is located in the display interface, and the rear screen pixel information may include the pixel information other than the pixel where the mouse cursor is located in the display interface.

[0137] 702: Obtain the pixel information other than the pixel where the mouse cursor is located in the overlapping area, and store it in the storage space of the rear screen pixel information.

[0138] It can be understood that when the mouse cursor is located in the overlapping area, the pixel information other than the pixel where the mouse cursor is located in the overlapping area can be obtained, and the obtained pixel information other than the pixel where the mouse cursor is located is stored in the storage space of the rear screen pixel information.

[0139] 703: Send the storage identifier of the storage space of the rear screen pixel information to the Xwayland service.

[0140] It can be understood that the compositor can share the storage identifier of the storage space storing the post-screen pixel information with the Xwayland service. Then, the Xwayland service can obtain the pixel information other than the pixel information of the pixel where the mouse cursor is located from the storage space storing the post-screen pixel information based on the storage identifier, and determine the pixel information of the transition window according to the pixel information other than the pixel information of the pixel where the mouse cursor is located.

[0141] It can be understood that in the embodiments of the present application, the above display method can be executed by an electronic device, and the electronic device can be a computer. The hardware structure of the computer will be introduced below.

[0142] The display system to which the display method mentioned in the embodiments of the present application is applied will be introduced below. Figure 8A A schematic structural diagram of a display system is shown, as Figure 8A shown, the display system may include:

[0143] An application startup module 801. When detecting that the user clicks on an X11 application, the electronic device can obtain an application window creation request corresponding to the click operation. Among them, the application window creation request may carry the position information where the display window corresponding to the X11 application is to be displayed on the display interface of the electronic device, and the application window creation request may be X_CopyArea().

[0144] A sub-application startup module 802. When detecting that the user clicks on a sub-application in the X11 application menu, it can obtain a sub-application window creation request corresponding to the click operation. Among them, the sub-application window creation request may carry the position information where the display window corresponding to the sub-application is to be displayed on the display interface of the electronic device.

[0145] A transition window display module 803. It can set the pixel values of the overlapping area to the pixel values of the pixels in the transition window, generate a transition window, and send the transition window to the compositor. The compositor is used to synthesize the display content on the display interface and the transition window and send the synthesized result for display.

[0146] A display window display module 804. It can obtain the pixel information of the display window corresponding to the application or sub-application from the memory, generate the display window corresponding to the application or sub-application, and then send the display window to the compositor. The compositor is used to synthesize the display content on the display interface and the display window and send the synthesized result for display.

[0147] Next, in combination with Figure 8A the display method mentioned in the embodiments of the present application will be further introduced. Figure 8B A schematic flowchart of another display method is shown, as Figure 8B shown, the display method may include:

[0148] 810: Operation of the user clicking on the X11 application.

[0149] It can be understood that the X11 application can be an application using the X11 protocol.

[0150] In some alternative examples, the user can click on the or such as the X11 application icon on the display interface of the electronic device to start X11 applications such as 360 Security Guard or Sunflower, that is, send an application window creation request to the electronic device. The electronic device can respond to the application window creation request sent by the user.

[0151] 820: Operation of the user clicking on the button of the X11 application settings pop-up window.

[0152] In some alternative examples, the user can click on the button of the settings pop-up window of the X11 application on the display interface of the electronic device to start the sub-application of the X11 application, that is, send an application window creation request to the electronic device. The electronic device can respond to the application window creation request sent by the user.

[0153] 830: Display the transition page.

[0154] It can be understood that when the electronic device receives the window creation request, it can determine the overlapping area on the display interface that overlaps with the display window corresponding to the application or sub-application based on the position information of the display window corresponding to the application or sub-application to be pre-displayed on the display interface of the electronic device in the window creation request. Then, the pixel value of the overlapping area can be set to the pixel value of the pixel in the transition window, or the difference between the pixel value of the display window and the pre-set processed pixel value can be set to the pixel value of the pixel in the transition window, or the pixel value of the outline of the display window can be set to the pixel value of the pixel in the transition window, and the difference between the pixel value of the overlapping area and the pre-set processed pixel value can be set to the pixel value of the pixel in the transition window. Moreover, after setting the pixel value of the overlapping area to the pixel value of the pixel in the transition window, a transition window can be generated and sent to the compositor, and the compositor can synthesize and display the display content of the display interface and the transition window.

[0155] 840: Display the normal function page.

[0156] It can be understood that after continuously displaying the transition window for a period of time, the display window (i.e., the normal function page) corresponding to the application or sub-application can be displayed in the overlapping area on the display interface of the electronic device that overlaps with the display window corresponding to the application or sub-application.

[0157] In the embodiments of the present application, by first displaying the transition window and then displaying the display window corresponding to the application, the continuity of window display can be improved and the user experience can be enhanced.

[0158] Figure 9 This is a hardware block diagram of a computer provided in an embodiment of the present application. In some embodiments, the computer may include one or more processors 901, a system control logic 902 connected to at least one of the processors 901, a system memory 903 connected to the system control logic 902, a non-volatile memory (NVM) 904 connected to the system control logic 902, and a network interface 905 connected to the system control logic 902.

[0159] In some embodiments, the processor 901 may include one or more single-core or multi-core processors. In some embodiments, the processor 901 may include any combination of a general-purpose processor and a dedicated processor (e.g., an image processor, an application processor, a baseband processor, etc.).

[0160] In some alternative examples, the processor 901 may execute the instructions corresponding to the display method mentioned above to set and display the pixel information of the transition window based on the pixel information of the overlapping area or the pixel information of the display window. In this way, the continuity of window display can be improved and the user experience can be enhanced.

[0161] In some embodiments, the system control logic 902 may include any suitable interface controller to provide any suitable interface to at least one of the processors 901 and / or any suitable device or component communicating with the system control logic 902.

[0162] In some embodiments, the system control logic 902 may include one or more memory controllers to provide an interface connected to the system memory 903. The system memory 903 may be used to load and store data and / or instructions. In some embodiments, the system memory 903 of the computer may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).

[0163] The non-volatile memory (NVM) 904 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, the non-volatile memory (NVM) 904 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as at least one of a hard disk drive (HDD), a compact disc (CD) drive, and a digital versatile disc (DVD) drive.

[0164] The non-volatile memory (NVM) 904 may include a portion of the storage resources installed on the device of the computer, or it may be accessible by the device but not necessarily part of the device. For example, the non-volatile memory (NVM) 904 may be accessed via the network interface 905 through a network.

[0165] In some alternative examples, the non-volatile memory (NVM) 904 may store pixel information in the display interface mentioned above except for the pixel information of the pixel where the mouse cursor is located.

[0166] In some other alternative examples, the non-volatile memory (NVM) 904 may also store the instructions corresponding to the display method mentioned above.

[0167] The system memory 903 and the non-volatile memory (NVM) 904 may respectively include: a temporary copy and a permanent copy of the instructions 907. The instructions 907 may include: instructions that, when executed by at least one of the processors 901, cause the computer to implement the memory management method mentioned in the embodiments of the present application. In some embodiments, the instructions 907, hardware, firmware, and / or their software components may additionally / alternatively be placed in the system control logic 902, the network interface 905, and / or the processor 901.

[0168] The network interface 905 may include a transceiver for providing a radio interface for the computer, and thus communicating with any other suitable devices (such as a front-end module, an antenna, etc.) through one or more networks. In some embodiments, the network interface 905 may be integrated with other components of the computer. For example, the network interface 905 may be integrated with at least one of the processor 901, the system memory 903, the non-volatile memory (NVM) 904, and a firmware device (not shown) having instructions. When at least one of the processors 901 executes the instructions, the computer implements the display method mentioned in the embodiments of the present application.

[0169] In some embodiments, at least one of the processors 901 may be logically packaged with one or more controllers for the system control logic 902 to form a system in package (SiP). In one embodiment, at least one of the processors 901 may be integrated with the logic of one or more controllers for the system control logic 902 on the same die to form a system on chip (SoC).

[0170] The computer may further include: an input / output (I / O) device 906. The input / output (I / O) device 906 may include a user window that enables a user to interact with the computer; the design of the peripheral component interface enables peripheral components to also interact with the computer. In some embodiments, the computer further includes sensors for determining at least one of the environmental conditions and location information related to the computer.

[0171] The software system architecture of the computer mentioned in this application will be introduced below.

[0172] The software system of the computer can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture, etc. In the embodiments of the present invention, taking the layered architecture as an example, the software system architecture of the computer will be exemplarily described.

[0173] Figure 10 It is a block diagram of the software system architecture of the computer in the embodiments of this application.

[0174] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom are the application layer, the framework layer, the system libraries, and the kernel layer.

[0175] The application layer may include a series of application program packages.

[0176] As Figure 10 shown, the application program packages may include application programs such as a browser, an application market, and documents. Among them, the browser and the documents may be X11 applications.

[0177] The framework layer provides application programming interfaces (APIs) and programming frameworks for the application programs in the application layer. The application framework layer includes some predefined functions.

[0178] As Figure 10 shown, the framework layer may include Xwayland services, display services, etc.

[0179] The Xwayland service can convert the X11 protocol into the wayland protocol, so that applications using the X11 protocol can be used on electronic devices installed with an operating system that supports the wayland protocol.

[0180] The display service is used to display the display content and transition windows of the composed display interface, or to display the display content and display windows of the composed display interface.

[0181] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0182] The system library may include multiple functional modules. For example: synthesizer, surface manager, Media Libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), etc.

[0183] The synthesizer can be used to synthesize the display content of the display interface and the transition window, or to synthesize the display content of the display interface and the display window, and report it to the display service. It can be understood that the synthesizer can be the Kwin synthesizer.

[0184] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

[0185] The media library supports the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0186] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.

[0187] The 2D graphics engine is a drawing engine for 2D drawing.

[0188] The kernel layer is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver. For the sake of convenience of explanation, Figure 10 take the kernel layer including a display driver and a sensor driver as an example for explanation.

[0189] The sensor driver can obtain the operation data of the user clicking on the X11 application, or obtain the operation data of the user clicking on the button of the X11 application settings class pop-up window, and report it to the Xwayland service.

[0190] The display driver can perform display sending based on the display content of the display interface and the transition window received by the display service, or perform display sending based on the display content of the display interface and the display window received by the display service.

[0191] In some optional instances, the display driver can transmit the display content of the synthesized display interface and the transition window based on the Xwayland protocol.

[0192] Next, in combination with the software architecture of the electronic device, the display method mentioned in the embodiments of the present application will be introduced.

[0193] As Figure 11As shown, the sensor driver can obtain the operation data of the user clicking on the X11 application or the operation data of the user clicking on the button of the X11 application settings - type pop - up window, and report it to the Xwayland service, that is, send a rendering request (referred to as an application window creation request in the above text) to the Xwayland service.

[0194] Then, the Xwayland service can receive the rendering request, and based on the position information where the display window corresponding to the application or sub - application in the rendering request is prepared to be displayed on the display interface of the electronic device, determine the overlapping area that overlaps with the display window corresponding to the application or sub - application in the display interface, that is, calculate the intersection size of the sub - windows. And send a query request to the compositor (such as Kwin) to query the pixel values of the overlapping area, that is, request to obtain the data of the corresponding - sized area from the screen data saved by the compositor, and fill the transition page (i.e., the transition window).

[0195] After filling the transition page, the transition window can be sent to the compositor, so that the compositor can compose the display content of the display interface and the transition window, or be used to compose the display content of the display interface and the display window, and report it to the display service. Furthermore, the display service can display the display content of the composed display interface and the transition window, or be used to display the display content of the composed display interface and the display window, and send it to the display driver for display.

[0196] As Figure 12 As shown, the sensor driver can obtain the operation data of the user clicking on the X11 application or the operation data of the user clicking on the button of the X11 application settings - type pop - up window, and report it to the Xwayland service, that is, send an X11 interface request X_CopyArea() (also referred to as a rendering request and an application window creation request in the above text) to the Xwayland service.

[0197] Then, the Xwayland service can, based on the position information where the display window corresponding to the application or sub - application in the X11 interface request is prepared to be displayed on the display interface of the electronic device, determine the overlapping area that overlaps with the display window corresponding to the application or sub - application in the display interface, that is, calculate the intersection of the sub - window (i.e., the transition window) and the parent window (the display interface), and obtain the background screen data without the mouse from the compositor (such as Kwin), and obtain the corresponding screen data according to the size of the intersection area of the sub - window and the parent window and fill it into the sub - window (i.e., the transition window).

[0198] Among them, the display interface (such as Screen) may include a front screen and a back screen, and the display contents of the front screen and the back screen are different. For example, the front screen displays the mouse cursor, and the back screen displays the desktop. In some optional examples, storage space for storing the pixel information of the front screen and storage space for storing the pixel information of the back screen may be applied for from the storage device, that is, two off-screen buffers, front and back, are created. Among them, both the storage space for storing the pixel information of the front screen and the storage space for storing the pixel information of the back screen have identifiers, and the identifiers of the storage space for storing the pixel information of the front screen and the storage space for storing the pixel information of the back screen are different. The compositor can obtain the background screen data without the mouse and copy it to the off-screen buffer, and share the identifier of the buffer with the Xwayland service. Furthermore, the Xwayland service can obtain the pixel information other than the pixel where the mouse cursor is located from the storage space for storing the pixel information of the back screen based on the storage identifier, that is, obtain the background screen data without the mouse, and determine the pixel information of the transition window based on the pixel information other than the pixel where the mouse cursor is located, that is, obtain the corresponding screen data according to the size of the intersection area between the sub-window and the parent window and fill it into the sub-window.

[0199] After obtaining the corresponding screen data according to the size of the intersection area between the sub-window and the parent window and filling it into the sub-window, the transition window can be sent to the compositor, so that the compositor can compose the display content of the display interface and the transition window, or for composing the display content of the display interface and the display window, and report it to the display service. Furthermore, the display service can display the display content of the composed display interface and the transition window, or for displaying the display content of the composed display interface and the display window, and send it to the display driver for display.

[0200] As Figure 13 shown, when the user clicks on the X11 application, or when the user clicks on the X11 application settings class pop-up button, the Xwayland service can apply for storage space for the sub-page from the storage device, which is filled with random values or all 0 values. Then, the Xwayland service can determine the overlapping area that overlaps with the display window corresponding to the application or sub-application in the display interface based on the position information where the display window corresponding to the application or sub-application is prepared to be displayed on the display interface of the electronic device, that is, calculate the intersection area between the popped-up sub-page (transition window) and the parent page (display interface), and obtain the background data of the intersection area from the compositor (such as Kwin), and fill the obtained background data into the storage space of the sub-page. Then a damage event can be sent to the compositor.

[0201] Among them, the display interface may include a front screen and a rear screen, and the display contents of the front screen and the rear screen are different. For example, the front screen displays the mouse cursor, and the rear screen displays the desktop. In some optional examples, storage spaces for storing the pixel information of the front screen and the rear screen may be applied to the storage device, that is, two off-screen buffers, front and back, are created. Among them, both the storage space for storing the pixel information of the front screen and the storage space for storing the pixel information of the rear screen have identifiers, and the identifiers of the storage space for storing the pixel information of the front screen and the storage space for storing the pixel information of the rear screen are different. The compositor can obtain the background screen data without the mouse and copy it to the off-screen buffer, and share the identifier of the buffer with the Xwayland service. Furthermore, the Xwayland service can obtain, based on the storage identifier, the pixel information other than the pixel where the mouse cursor is located from the storage space for storing the pixel information of the rear screen, that is, obtain the background screen data without the mouse and copy it to the off-screen buffer, and determine the pixel information of the transition window according to the pixel information other than the pixel where the mouse cursor is located, that is, obtain the corresponding screen data according to the size of the intersection area between the sub-window and the parent window and fill it into the sub-window.

[0202] After obtaining the corresponding screen data according to the size of the intersection area between the sub-window and the parent window and filling it into the sub-window, the transition window can be sent to the compositor, so that the compositor can composite the display content of the display interface and the transition window, or for compositing the display content of the display interface and the display window, and report it to the display service. Furthermore, the display service can display the display content of the composited display interface and the transition window, or for displaying the display content of the composited display interface and the display window, and send it to the display driver for display.

[0203] Embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memories and / or storage elements), at least one input device, and at least one output device.

[0204] The program code can be applied to the input instructions to execute the various functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, the processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application-specific integrated circuit, or a microprocessor.

[0205] The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. When needed, the program code can also be implemented in assembly language or machine language. In fact, the mechanisms described in this application are not limited to the scope of any specific programming language. In any case, the language can be a compiled language or an interpreted language.

[0206] In some cases, the disclosed embodiments can be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which can be read and executed by one or more processors. For example, the instructions can be distributed via a network or via other computer-readable media. Thus, machine-readable media can include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to, floppy disks, optical disks, optical discs, compact discs read-only memory (CD-ROMs), magneto-optical discs, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) in electrical, optical, acoustic, or other forms using the Internet. Thus, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).

[0207] The above introduced the possible hardware structures of the electronic device. It can be understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device can include more or fewer components than those shown in the figures, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figures can be implemented in hardware, software, or a combination of software and hardware.

[0208] In the drawings, some structural or method features can be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features can be arranged in a manner and / or order different from that shown in the illustrative drawings. Additionally, including a structural or method feature in a particular figure does not imply that such a feature is required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0209] It should be noted that each unit / module mentioned in the device embodiments of the present application is a logical unit / module. Physically, a logical unit / module can be a physical unit / module, a part of a physical unit / module, or can be implemented as a combination of multiple physical units / module. The physical implementation manner of these logical units / modules themselves is not the most important. The combination of the functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application. This does not mean that there are no other units / modules in the above device embodiments.

[0210] It should be noted that in the examples and the specification of this patent, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising one" does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0211] Although the present application has been illustrated and described by referring to some preferred embodiments of the present application, those of ordinary skill in the art should understand that various changes can be made to it in form and detail without departing from the scope of the present application.

Claims

1. A display method, applied to an electronic device, characterized in that, including: displaying a first display interface; detecting a first operation of a user, wherein the first operation is used to trigger the display of a first display window on the first display interface; sequentially displaying a first transition window and the first display window of the first display window, wherein display parameters of the first transition window are related to a first overlapping area or to the first display window, and the first overlapping area is an area in the first display interface that overlaps with the first display window; 2. The method according to claim 1, characterized in that, the first display window is a display window corresponding to a first application, and the first application is an application using the X11 protocol; the first transition window is a window generated based on an operating system supporting the wayland protocol; 3. The method according to claim 2, characterized in that, determining the first overlapping area by the following method: obtaining a window creation request corresponding to the first operation, where the window creation request carries first position information where the first display window is to be displayed on the first display interface; determining the first overlapping area based on the first position information where the first display window is to be displayed on the first display interface; 4. The method according to claim 1, characterized in that, further including: obtaining pixel values of pixels in a first overlapping area in the first display interface that overlaps with the first display window; setting display parameters of the first transition window according to the pixel values of pixels in the first overlapping area; 5. The method according to claim 4, characterized in that, the setting display parameters of the first transition window according to the pixel values of pixels in the first overlapping area includes: setting the pixel values of pixels in the first overlapping area as display parameters of corresponding pixels in the first transition window, or setting a difference between the pixel values of pixels in the first overlapping area and a pre-set processed pixel value as display parameters of corresponding pixels in the first transition window; 6. The method according to claim 4, characterized in that, obtaining the pixel values of pixels in the first overlapping area by the following method: if there are pixel values of pixels where a mouse cursor is located in the first overlapping area, obtaining pixel values of pixels in the first overlapping area except for the pixel values of pixels where the mouse cursor is located; 7. The method according to claim 1, characterized in that, the displaying the first transition window of the first display window includes: obtaining pixel values of pixels in the first display window; setting display parameters of the first transition window according to the pixel values of pixels in the first display window; 8. The method according to claim 7, characterized in that, the setting display parameters of the first transition window according to the pixel values of pixels in the first display window includes: setting the pixel values of pixels in the first display window as display parameters of corresponding pixels in the first transition window, or setting a difference between the pixel values of pixels in the first display window and a pre-set processed pixel value as display parameters of corresponding pixels in the first transition window; 9. The method according to claim 1, characterized in that, display content of the first display interface includes a desktop and / or a second display window corresponding to a second application, wherein the second display window is a display window displayed when a second operation of the user is detected, and the time of the second operation is earlier than the time of the first operation; 10. The method according to claim 1, characterized in that, a display duration of the first transition window is within a duration interval [0.1 s, 1 s]; 11. A display method, characterized in that, applied to an electronic device installed with an operating system supporting the wayland protocol, the method includes: displaying a first display interface; A first operation of a user is detected, wherein the first operation is used to trigger the display of a first display window on the first display interface, and the first display window is a display window corresponding to an application using the X11 protocol; The first transition window of the first display window and the first display window are sequentially displayed, wherein the display parameters of the first transition window are related to the first overlapping area or to the first display window, and the first overlapping area is an area in the first display interface that overlaps with the first display window.

12. An electronic device, characterized in that It includes: a memory for storing a computer program executed by one or more processors of the electronic device, and a processor, which is one of the one or more processors of the electronic device, for executing the display method according to any one of claims 1-11.

13. A readable storage medium, characterized in that A computer program is stored on the readable medium, and when the computer program is executed on the electronic device, the electronic device is caused to execute the display method according to any one of claims 1-11.

14. A computer program product, characterized in that When the computer program product runs on the electronic device, the electronic device is caused to execute the display method according to any one of claims 1-11.