Window display method, window display device, display equipment and medium
By placing the control elements of the control application on top of the display device and removing the full-screen top state information of the focused window, the problem of the control application being obscured is solved, achieving full-screen display of the focused window and usability of control elements, thus improving the user experience.
Patent Information
- Application Number
- CN202411116055.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2026-03-03
AI Technical Summary
When other applications' windows are displayed in full screen on a display device, the window of the control application is obscured, preventing users from directly selecting the touch controls or tools provided by the control application, thus affecting the user experience.
By responding to the activation of the control application, the control elements provided by the control application are displayed on top of the current display interface, and their full-screen top-mounted state information is removed when the focused window is displayed in full screen, ensuring that the control elements of the control application are always displayed on the top layer, and the focused window is displayed in full screen outside the control elements.
It achieves full-screen display of the focus window while preventing the control elements provided by the control application from being obscured, thus simplifying user operation and improving user experience.
Smart Images

Figure CN121597311A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of window display technology, and particularly relates to a window display method, a window display device, a display equipment, and a computer-readable storage medium. Background Technology
[0002] Currently, when displaying content on a display device, such as an operating system interface or system desktop environment, users are allowed to use control applications and select touch controls or touch tools provided by the control application to interact with the content on the interface. For example, in a teaching scenario, the display device is an electronic blackboard. While displaying written content on the electronic blackboard, users can use virtual controls provided by the control application to write and / or mark the content displayed on the electronic blackboard, thereby displaying the corresponding written content and / or marking effects based on the writing trajectory and / or marking operations.
[0003] However, when other applications' windows are displayed in full screen on a display device, the window is obscured because it is displayed on top of the screen, making it inconvenient for users to directly select the touch controls or touch tools provided by the control application. Summary of the Invention
[0004] In view of this, embodiments of this application provide a window display method, a window display device, a display apparatus, and a computer-readable storage medium to improve the user's operating experience.
[0005] A first aspect of this application provides a method for displaying a window, applied to a display device. The method for displaying a window includes:
[0006] In response to the activation of the control application, the control elements provided by the control application are displayed on top of the currently displayed interface;
[0007] In response to the operation of displaying the focus window in full screen in the current display interface, remove the full-screen on-top status information of the focus window;
[0008] The display interface of the control application is displayed on top, and the focus window is displayed in full screen in the area outside the control elements provided by the control application.
[0009] A second aspect of this application provides a window display device, applied to a display device, the window display device comprising:
[0010] The top unit is used to display control elements provided by the control application at the top of the currently displayed interface in response to the activation of the control application;
[0011] The adjustment unit is used to remove the full-screen on-top status information of the focus window in response to the operation of displaying the focus window in full screen in the current display interface.
[0012] An execution unit is used to display the interface of the control application on top, and to display the focus window in full screen in the area outside the control elements provided by the control application.
[0013] A third aspect of this application provides a display device, the display device including a memory, a processor, and a computer program stored in the memory and executable on the display device, wherein the processor executes the computer program to implement the steps of the window display method provided in the first aspect.
[0014] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the window display method provided in the first aspect.
[0015] The window display method, window display device, display equipment, and computer-readable storage medium provided in the embodiments of this application have the following beneficial effects:
[0016] This application provides a window display method that, in response to the activation of a control application, displays control elements provided by the control application on top of the current display interface. Because these control elements are displayed on top, they are not obscured by other window content. When a full-screen display of the focus window is triggered, the full-screen top-of-the-line status of the focus window is removed, thus demoting its window stacking order. In this way, the control elements provided by the control application remain on top, ensuring the control application's display interface remains on top, and the focus window is displayed full-screen outside of the control elements provided by the control application. This achieves full-screen display of the focus window while preventing its control elements from being obscured by the full-screen focus window. Therefore, the user can directly select control elements to write and / or mark content without triggering an exit from the full-screen focus window, simplifying manual operation and effectively improving the user experience. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating the implementation of a window display method provided in an embodiment of this application;
[0019] Figure 2 This is a flowchart illustrating the implementation of a window display method according to another embodiment of this application;
[0020] Figure 3 This is a flowchart illustrating the implementation of a window display method according to another embodiment of this application;
[0021] Figure 4 This is a structural block diagram of a window display device provided in an embodiment of this application;
[0022] Figure 5 This is a structural block diagram of a display device provided in an embodiment of this application. Detailed Implementation
[0023] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0024] To enable those skilled in the art to better understand the solutions of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0025] In the embodiments of this application, "at least one" refers to one or more; "multiple" refers to two or more. In the description of this application, the terms "first," "second," "third," etc., are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance, nor should they be construed as indicating or implying order.
[0026] References such as “one embodiment” or “some embodiments” as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the terms “comprising,” “including,” “having,” and variations thereof, as used in this specification, mean “including, but not limited to,” unless otherwise specifically emphasized.
[0027] Currently, when displaying content on a display device, such as an operating system interface or system desktop environment, users are allowed to use control applications and select touch controls or touch tools provided by the control application to operate the displayed screen. For example, in a teaching scenario, the display device is an electronic blackboard. While displaying written content on the electronic blackboard, users can use virtual controls provided by the control application to write and / or mark the content displayed on the electronic blackboard, thereby displaying the corresponding written content and / or marking effects based on the writing trajectory and / or marking operations.
[0028] However, when a window is displayed in full screen on a display device, the window is displayed on top of the screen, which obscures the control window of the control application, making it inconvenient for users to directly select the touch controls or touch tools provided by the control application.
[0029] For example, the interface displayed on the display device can be the system desktop. This could be a desktop environment developed based on the X Window System, such as KDE, DDE, or UKUI. Desktop environments developed based on the X Window System all follow the Extended Window Manager Hints (EWMH) protocol specification defined in the X Window System, and the EWMH protocol declares or defines a stacking strategy or stacking order for the displayed windows. For example, a display window with the _NET_WM_STATE_FULLSCREEN fullscreen state will be placed on top, meaning it will be displayed at the very top.
[0030] The control application enabled on the display device can specifically be an application built on the Electron framework. Electron is an open-source, cross-platform desktop application development framework that uses JavaScript, Hyper Text Markup Language (HTML), and CSS as its development languages. It's a browser-based framework that runs on Node.js. Enabling a control application on the display device allows you to display the control elements provided by the application through a control window. Furthermore, the application can keep its control window on top by calling the `setAlwaysOnTop` API provided by the Electron framework. For example, the `setAlwaysOnTop` API can be used to add corresponding on-top states to the control window, such as the `_NET_WM_STATE_ABOVE` state and the `_NET_WM_STATE_STAYS_ON_TOP` state.
[0031] However, in desktop environments such as KDE, DDE, and UKUI, if a full-screen operation is performed on a window other than the control window, that window is given the _NET_WM_STATE_FULLSCREEN full-screen on-top state. According to the window stacking order defined in the EWMH protocol specification, since the focused window is given the _NET_WM_STATE_FULLSCREEN full-screen on-top state, it is at the top layer. Meanwhile, the control window of the control application is in the _NET_WM_STATE_ABOVE state.
[0032] In the _NET_WM_STATE_STAYS_ON_TOP state, the control window is covered by the top-level focused window. In other words, the control elements displayed in the control window cannot be displayed on the top level, making it inconvenient for users to directly select the touch controls or touch tools provided by the control application.
[0033] To address the aforementioned issues, this embodiment provides a window display method that, in response to the activation of a control application, prioritizes the control elements provided by the application in the current display interface. Since these elements are prioritized, they remain on top and are not obscured by other window content. When a full-screen display of the focus window is triggered, the focus window's top-of-the-line status is removed, thus demoting its stacking order. In this way, the control elements remain on top, ensuring the application's display interface remains on top, and the focus window is displayed in full-screen mode outside of the application's control elements. This achieves full-screen display of the focus window while preventing its elements from being obscured. Therefore, users can directly use the application's control elements to write and / or mark content without triggering an exit from the full-screen mode, simplifying manual operations and effectively improving the user experience.
[0034] This embodiment provides a window display method, with the execution subject being a display device. Specifically, it can be a control device or controller within the display device. In practical use, the display device can be a mobile terminal, tablet computer, monitor, television, projector, electronic whiteboard, etc., and is not limited here.
[0035] The following describes in detail a window display method provided in this embodiment through specific implementation.
[0036] Figure 1 A flowchart illustrating the implementation of a window display method according to an embodiment of this application is shown. Figure 1 As shown, the method for displaying a window includes the following steps:
[0037] 110: In response to the activation of a control application, display the control elements provided by the control application on top of the currently displayed interface.
[0038] In section 110, a control application refers to an application that provides control elements to the user within the current display interface. Here, control elements are used to allow the user to trigger interactions with the display device.
[0039] In this embodiment, the control element may be an operation-type control element used to indicate operations on the displayed content, and / or an interaction-type control element used to indicate data interaction with the display device.
[0040] As an example, the control elements used to illustrate operations on the displayed content can specifically be annotation control elements, writing control elements, etc., for users to select. For instance, annotation control elements can be annotation boxes, text boxes, etc., while writing control elements can be icons of virtual writing pens or virtual pen tips. By selecting annotation or writing control elements, users can then perform annotation, writing, or marking operations on the current display interface.
[0041] As an example, interactive control elements used to illustrate data interaction with a display device can specifically be file control elements used to illustrate access to a data directory, and / or interactive control elements used to illustrate calling an access interface to interact with data. For example, file control elements can specifically be folder icons, menu icons, display device icons, or icons of external devices connected to the display device, etc. Interactive control elements can specifically be user icons or account avatars indicating account login, or cloud icons indicating access to a server, etc.
[0042] It's important to note that for control applications, in order to present or display control elements, a control window can be used as a carrier to present or display control elements. Therefore, after enabling a control application, it can also display control elements by loading a control window. Here, unlike traditional display windows, the control window of a control application can be a partial area window used only to present control elements. That is, the control window does not need to distinguish between full-screen and non-full-screen display states; it is only used to load and display control elements within the currently displayed interface.
[0043] In one embodiment, the currently displayed interface generally refers to the operating system desktop of the display device. In this embodiment, when the display device displays the currently displayed interface, the control elements provided by the control application are displayed on top of the currently displayed interface.
[0044] For example, when the display device is turned on, the control application is automatically enabled, and the control elements provided by the control application are displayed at the top of the current display interface.
[0045] Taking a projector or electronic whiteboard as an example, the projector or electronic whiteboard has a control application pre-installed. After powering on, the operating system interface is displayed, and the control application is automatically enabled. The control elements provided by the control application are displayed at the top of the current operating system interface.
[0046] In practical implementation, it can be based on an operating system desktop or desktop environment developed based on the X Window System, such as KDE, DDE, UKUI, etc. The display device responds by enabling the control application, placing the control elements provided by the control application on top of the current display interface. Specifically, it places the control elements provided by the control application on top of the operating system desktop, allowing the user to directly select the control element to manipulate the displayed content or interact with the display device.
[0047] In another embodiment, the currently displayed interface can also be the interface where an application is enabled. In this embodiment, when the display device displays the current display interface, in response to a user-triggered operation to enable the control application, the control elements provided by the control application are displayed on top of the current display interface. That is, when the display device has enabled or displayed certain applications or content, if the application's program window is displayed in full-screen mode, a preset command to enable the control application can be triggered via a shortcut key or other means, thereby displaying the control elements provided by the control application on top of the program window's interface.
[0048] For example, when using a display device with a large display area for screen projection, in response to the user's operation to enable the control application, the control elements provided by the control application are displayed on top of the current display interface.
[0049] Taking a large-screen monitor or electronic whiteboard as an example, when the large-screen monitor or electronic whiteboard receives screen resources shared by other devices, in response to the user-triggered operation to enable the control application, the control elements provided by the control application are displayed at the top of the interface of the currently displayed screen resources.
[0050] It is understood that in other embodiments, the control application can be enabled by clicking its icon in the operating system interface of the display device, and the control elements provided by the control application can be displayed at the top of the current display interface.
[0051] For example, since a control application can use a control window as a carrier to present or display control elements, the process corresponding to the control window of the control application can be used as a configuration target or object. In specific implementation, by configuring the process corresponding to the control window of the control application to be in a top-position state, the control elements provided by the control application can be displayed on top of the current display interface.
[0052] As one embodiment, step 110 includes:
[0053] The preset window manager is invoked, and the preset configuration interface of the control application is used to configure the window on top state information of the control application into the window process corresponding to the control application, so that the control elements provided by the control application are displayed on top in the current display interface.
[0054] In all embodiments of this application, the preset window manager refers to the window manager built into the operating system of the display device. The preset configuration interface refers to an application programming interface pre-configured in the control application for configuring the state information of the control window process corresponding to the control application.
[0055] For example, the control application can specifically be an application built on the Electron framework. Here, Electron is an open-source, cross-platform desktop application development framework that uses JavaScript, Hypertext Markup Language, and CSS as its development languages. It's a browser-based framework that runs on Node.js. Based on the characteristics of the Electron framework, when running the control application on a display device, it can use Node.js's application programming interface (API) to access the underlying operating system, such as the file system, window manager, system taskbar, processes, and network. Specifically, the preset configuration interface can be the `setAlwaysOnTop` API provided by the Electron framework. The window's on-top state information can specifically be the `_NET_WM_STATE_ABOVE` and `_NET_WM_STATE_STAYS_ON_TOP` state information. In this example, the preset window manager is called, using the `setAlwaysOnTop` API as the preset configuration interface, to configure the `_NET_WM_STATE_ABOVE` and `_NET_WM_STATE_STAYS_ON_TOP` state information into the window process corresponding to the control application.
[0056] In practical implementation, a KWin script that can be executed by the window manager can be configured in the control application. This KWin script describes the implementation logic of the above steps. That is, the KWin script describes the implementation logic of configuring the window on top state information of the control application into the window process corresponding to the control application through the preset configuration interface of the control application. Then, when the control application is enabled, the KWin script is executed by calling the window manager built into the operating system to configure the window on top state information of the control application into the window process corresponding to the control application, thereby realizing the display of the control elements provided by the control application on top in the current display interface.
[0057] 120: In response to the operation of displaying the focus window in full screen in the current display interface, remove the full-screen on-top status information of the focus window.
[0058] In step 120, the current display interface may include windows other than the control window to which the control is applied. When the user selects or operates on another window in the current display interface, that window becomes the focus window. That is, the focus window generally refers to any window in the current display interface that is determined by the user's operation, other than the control window to which the control is applied.
[0059] It is understandable that although the control elements provided by the control application are displayed on top of the current display interface, the control elements provided by the control application do not completely cover the current display interface. Therefore, windows of other applications can still be displayed on the current interface.
[0060] In some embodiments, since each window displayed on the display device corresponds to a window process, and the window stacking order corresponding to that window is defined in each window process, the state information of the focus window can be adjusted. For example, the state information recorded or defined in the process of the focus window can be reconfigured. When a user selects or operates on another window, that is, the window gains focus, it can be determined that the window is the focus window. If the user triggers a full-screen display operation on the focus window, the focus window can be displayed in full-screen mode by configuring the full-screen top-position state information of the focus window's process in response to the operation. Here, in order to avoid the focus window obscuring the control elements provided by the control application when displayed in full-screen mode, this embodiment adjusts the full-screen top-position state information of the focus window to non-top-position state information, which can also demote the window stacking order of the focus window when displayed in full-screen mode. In this way, it can be avoided that the focus window will obscure the control window of the control application after being displayed in full-screen mode because its window process records or carries the full-screen top-position state information, that is, it can be avoided that the focus window will obscure the control elements provided by the control application after being displayed in full-screen mode.
[0061] One possible approach is to remove the full-screen top-of-the-line status information of the focused window. Specifically, this can be achieved by calling the Task Manager, accessing the window process of the focused window, and removing the full-screen top-of-the-line status information defined or carried in the window process, so that the focused window can be in a non-top-of-the-line state when displayed in full-screen mode.
[0062] Understandably, in practical implementations, different window process access strategies can be adopted based on the type or special attributes of the focused window to access and configure its process. For example, if the focused window is a mini-program window, the mini-program tool can be invoked to access and configure the window process. Similarly, if the focused window is a browser window, the browser's built-in process manager can be invoked to access and configure the window process.
[0063] As one embodiment, step 120 may specifically include:
[0064] The default window manager is invoked to remove the full-screen on-top state information of the focused window in the process of the focused window, so that the focused window is in a non-on-top state.
[0065] It should be noted that, in response to the operation of displaying the focus window in full screen in the current display interface, the focus window is configured with full-screen on top by default, so the window stacking order of the focus window is at the top level. In order to demote the window stacking order of the focus window, this embodiment calls the window manager to access the focus window process, and removes the relevant state information in the window process, thereby demoting the window stacking order of the full-screen focus window.
[0066] In other embodiments, the full-screen on-top state information of the focused window in the process can be modified to other non-full-screen on-top state information, thereby causing the window stacking order of the focused window to be downgraded, that is, the focused window is in a non-on-top state.
[0067] In this embodiment, since the focus window is configured with full-screen top state information by default when responding to the operation of displaying the focus window in full screen in the current display interface, the focus window can be placed in a non-top state by calling the preset window manager to remove the full-screen top state information of the focus window from the process of the focus window.
[0068] For example, in desktop environments such as KDE, DDE, and UKUI, if a full-screen operation is performed on a focus window other than the control window, that focus window is given the _NET_WM_STATE_FULLSCREEN full-screen on-top state. Here, due to the window stacking order defined or declared in the EWMH protocol specification, when the focus window is given the _NET_WM_STATE_FULLSCREEN full-screen on-top state, it is at the top layer. By calling the preset window manager, the full-screen on-top state information of the focus window is removed from the focus window's process; that is, the _NET_WM_STATE_FULLSCREEN full-screen on-top state of the focus window is removed from the focus window's process, thereby causing the window stacking order of the focus window to be downgraded, which means that the focus window is in a non-on-top state.
[0069] In other embodiments, the _NET_WM_STATE_FULLSCREEN full-screen top state of the focused window can be modified to another non-full-screen top state based on the window stacking order defined or declared in the EWMH protocol specification. For example, when the EWMH protocol specification defines or declares an intermediate layer state or a second-to-top state, the _NET_WM_STATE_FULLSCREEN full-screen top state of the focused window can be modified to an intermediate layer state or a second-to-top state, thereby degrading the window stacking order of the focused window, that is, making the focused window a non-top state.
[0070] 130: The display interface of the control application is displayed on top, and the focused window is displayed in full screen in the area outside the control elements provided by the control application.
[0071] In practical implementation, since the window manager built into the operating system of the display device can control and modify the window processes displayed on the display device, when displaying the focus window in full screen according to the non-top state information, it can be done by calling the window manager to achieve full screen display of the focus window according to the non-top state information.
[0072] As an example, when the current display interface is the operating system interface, step 130 specifically includes:
[0073] The preset window manager is invoked to hide the taskbar of the operating system interface and obtain the target display interface; the target display interface displays control elements provided by the control application on top; the focus window is displayed in full screen in the target display interface.
[0074] In this embodiment, the operating system interface may include a taskbar for displaying the current list of tasks or applications running on the display device.
[0075] Here, because the taskbar in the operating system interface has a special function—displaying applications or tasks currently running on the display device so users can switch between displayed content or the focused window at any time—some existing full-screen window display solutions do not hide or obscure the taskbar when the focused window is displayed in full-screen mode. That is, the taskbar is still present when the focused window is displayed in full-screen mode, meaning the focused window cannot achieve true full-screen display.
[0076] To achieve true full-screen display of the focused window, this embodiment uses a preset window manager to hide the operating system's taskbar, thus obtaining the target display interface. Here, since the taskbar can also be considered a window of the operating system interface, the preset window manager can be used to access and modify the taskbar's processes and status information. Based on this, by calling the preset window manager, the taskbar's status information can be modified, thereby hiding the operating system's taskbar and obtaining the target display interface.
[0077] In practical implementation, a preset window manager can be invoked to notify the dock process via dBus commands, setting the taskbar's HideMode property to always be hidden, thus obtaining the target display interface. Since the target display interface contains control elements displayed on top, displaying the focus window in full-screen mode according to its non-top-mounted state not only ensures that the control elements are on top but also allows the focus window to occupy the entire display area of the device when displayed in full-screen mode by hiding the operating system's taskbar, achieving true full-screen display.
[0078] As one possible approach, since the control elements provided by the control application are displayed on top of the current display interface when the control application is enabled, steps 120 to 130 can be implemented by configuring a corresponding script file in the control application, and then executing the script file while the space application is running.
[0079] For example, a KWin script can be configured in the control application to be executed by the window manager. When the control application is enabled, the KWin script is executed by calling the operating system's built-in window manager. Here, the KWin script describes steps 120 to 130, that is, by calling the window manager to execute the KWin script, it can realize the steps of adjusting the full-screen on-top state information of the focus window to the off-top state information in response to the operation of displaying the focus window in full screen in the current display interface, and the steps of displaying the focus window in full screen according to the off-top state information in the current display interface with on-top control elements.
[0080] It is easy to understand that, among other possible implementation methods, a script file can also be configured in the operating system to listen for user operation events on the window in the display device, thereby implementing steps 110 to 130 above.
[0081] The above solution, in response to the activation of the control application, displays the control elements provided by the control application on top of the current display interface. Because these control elements are displayed on top, they remain at the very top and are not obscured by other window content. When the full-screen display of the focus window is triggered, the full-screen top-of-the-line status of the focus window is removed, thus demoting its window stacking order. In this way, the control elements provided by the control application remain on top. Therefore, in the current display interface with the top-of-the-line control elements, the control application's display interface remains on top, and the focus window is displayed full-screen outside the area containing the control elements provided by the control application. This achieves full-screen display of the focus window while preventing the control elements provided by the control application from being obscured by the full-screen focus window. Therefore, users can directly use the control elements provided by the control application to write and / or mark content without triggering an exit from the full-screen operation of the focus window, simplifying manual operation and effectively improving the user experience.
[0082] Furthermore, this solution can resolve the issue of control windows being covered by full-screen focus windows without modifying the operating system-level source code, resulting in lower implementation costs. Additionally, when the current display interface is the operating system interface, by invoking a preset window manager, the taskbar of the operating system interface is hidden before the focus window is displayed in full screen. This achieves adaptation to the appropriate full-screen display strategy based on the actual full-screen display environment or desktop environment, exhibiting high flexibility and adaptability.
[0083] Please see Figure 2 , Figure 2 This is a flowchart illustrating the implementation of a window display method according to another embodiment of this application. Figure 1 Compared to the corresponding embodiments, Figure 2 The method for displaying the window shown includes step 210 after step 110. For example... Figure 2 As shown, specifically:
[0084] 210: Calls the preset window manager to listen for operations on windows in the currently displayed interface.
[0085] In this embodiment, the currently displayed interface may also include other windows besides the control window to which the control is applied.
[0086] It's easy to understand that since the window manager can access and modify the window process of all windows on the display device, it can respond to user actions on windows more quickly by calling the preset window management listener for operations on windows in the current display interface.
[0087] In practice, KWin scripts can be used to listen to operations on windows in the current display interface. That is, by calling a preset window manager and executing the KWin script, the operation of all windows in the current display interface can be monitored.
[0088] Please see Figure 3 , Figure 3 This is a flowchart illustrating the implementation of a window display method according to another embodiment of this application. Figure 1 or Figure 2 Compared to the corresponding embodiments, Figure 3 The method for displaying the window shown includes step 310 after step 130. For example... Figure 3 As shown, specifically:
[0089] 310: In response to the operation of exiting full-screen focus window display, in the current display interface of the control element provided by the application with the top-view control, exit full-screen display of the focus window.
[0090] In this embodiment, the operation of exiting the full-screen display focus window can be triggered manually by the user or automatically by the display device.
[0091] For example, when a user triggers a control element to indicate that the focused window should exit full-screen display, the focused window should be removed from full-screen display in the current display interface where a control element is displayed on top.
[0092] For example, when a display device responds to the operation of displaying other windows in full screen, it can first exit the current full-screen display focus window, which is to say, the operation of exiting the full-screen display focus window is triggered at this time.
[0093] The above solution, by responding to the operation of exiting the full-screen display of the focus window, in the current display interface with a top-display control element, not only keeps the control element on top, but also restores the non-full-screen display state of the focus window.
[0094] In some embodiments, during implementation, a preset window manager can be invoked to notify the dock process via a dBus command to set the taskbar's HideMode property to always be hidden, thereby obtaining the target display interface. Correspondingly, in response to exiting full-screen display of the focused window, the taskbar's HideMode property can also be set to always be displayed by notifying the dock process via a dBus command. That is, in the current display interface with a pinned control element, the taskbar is redisplayed while the focused window is exiting full-screen display. This avoids the user being unable to promptly or intuitively understand the tasks currently being performed by the display device due to a hidden taskbar, and also prevents users from mistakenly believing that the display device has malfunctioned, thus improving the user experience.
[0095] Please see Figure 4 , Figure 4 This is a structural block diagram of a window display device provided in an embodiment of this application. In this embodiment, the window display device includes units used for performing... Figures 1 to 3 The steps in the corresponding embodiments. Please refer to the details. Figures 1 to 3 ,as well as Figures 1 to 3 The relevant descriptions in the corresponding embodiments are shown below. For ease of explanation, only the parts relevant to this embodiment are shown. See also... Figure 4 The window display device, applied to a display device, includes: a top-mounting unit 401, an adjustment unit 402, and an execution unit 403.
[0096] The top unit 401 is used to display the control elements provided by the control application on top of the currently displayed interface in response to the activation of the control application.
[0097] The adjustment unit 402 is used to remove the full-screen on-top state information of the focus window in response to the operation of displaying the focus window in full screen in the current display interface.
[0098] The execution unit 403 is used to display the control application's interface on top, and to display the focused window in full screen in the area outside the control elements provided by the control application.
[0099] As one embodiment, the window display device further includes:
[0100] The listening unit is used to invoke the preset window manager to listen for operations on windows in the currently displayed interface.
[0101] As one embodiment, the window display device further includes:
[0102] The full-screen exit unit is used to respond to the operation of exiting the full-screen display of the focused window. In the current display interface of the application with the top-view control, the focused window will exit the full-screen display.
[0103] As one embodiment, the top-of-the-point unit 401 is further configured to: when the display device displays the current display interface, display the control elements provided by the control application on top of the current display interface; or when the display device displays the current display interface, in response to an operation triggered by the user to enable the control application, display the control elements provided by the control application on top of the current display interface.
[0104] As an example, the top-of-the-line unit 401 is specifically used to call a preset window manager and configure the top-of-the-line window status information of the control application into the control window process corresponding to the control application through the preset configuration interface of the control application.
[0105] As an example, the adjustment unit 402 is specifically used to call a preset window manager to remove the full-screen on-top state information of the focus window in the process of the focus window, so that the focus window is in a non-on-top state.
[0106] As an example, the execution unit 403 is specifically used to call a preset window manager, hide the taskbar of the operating system interface, and obtain the target display interface; wherein, the target display interface displays control elements provided by the control application at the top; and the focus window is displayed in full screen in the target display interface.
[0107] It should be understood that the window display device provided in this embodiment has units used for performing... Figures 1 to 3 The steps in the corresponding embodiments, and for Figures 1 to 3 The steps in the corresponding embodiments have been explained in detail in the above embodiments. Please refer to them for details. Figures 1 to 3 ,as well as Figures 1 to 3 The relevant descriptions in the corresponding embodiments will not be repeated here.
[0108] Figure 5 This is a structural block diagram of a display device provided in an embodiment of this application. For example... Figure 5 As shown, the display device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50, such as a program for a window display method. When the processor 50 executes the computer program 52, it implements the steps of each embodiment of the window display method described above, for example... Figures 1 to 3 The steps shown. Alternatively, the processor 50 may implement the above when executing the computer program 52. Figure 4 The functions of each unit in the corresponding embodiments are described. Please refer to the following for details. Figure 4The relevant descriptions in the corresponding embodiments are not repeated here.
[0109] For example, the computer program 52 may be divided into one or more units, which are stored in the memory 51 and executed by the processor 50 to complete this application. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program 52 in the display device 5. For example, the computer program 52 may be divided into a top-down unit, an adjustment unit, and an execution unit, each with its specific function as described above.
[0110] The display device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that... Figure 5 This is merely an example of display device 5 and does not constitute a limitation on display device 5. It may include more or fewer components than shown, or combine certain components, or different components. For example, the display device may also include input / output devices, network access devices, buses, etc.
[0111] The processor 50 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0112] The memory 51 can be an internal storage unit of the display device 5, such as a hard disk or memory of the display device 5. The memory 51 can also be an external storage device of the display device 5, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the display device 5. Furthermore, the memory 51 can include both internal and external storage units of the display device 5. The memory 51 is used to store the computer program and other programs and data required by the display device. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0113] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for displaying a window, characterized in that, Applied to a display device, the method for displaying the window includes: In response to the activation of the control application, the control elements provided by the control application are displayed at the top of the currently displayed interface; In response to the operation of displaying the focus window in full screen in the current display interface, the full-screen on-top state information of the focus window is removed; The display interface of the control application is displayed on top, and the focus window is displayed in full screen in the area outside the control elements provided by the control application.
2. The method according to claim 1, characterized in that, The method further includes: Invoke the preset window manager to listen for operations on windows in the currently displayed interface.
3. The method according to claim 1 or 2, characterized in that, The method further includes: In response to the operation of exiting full-screen display of the focused window, in the current display interface where the control elements provided by the application that are displayed on top are exited from full-screen display.
4. The method according to claim 1, characterized in that, The step of displaying control elements provided by the control application at the top of the current display interface in response to the activation of the control application includes: When the display device displays the current display interface, the control element provided by the control application is displayed at the top of the current display interface; or When the display device displays the current display interface, in response to the user-triggered operation to enable the control application, the control elements provided by the control application are displayed at the top of the current display interface.
5. The method according to claim 1, characterized in that, The step of displaying the control element provided by the control application at the top of the current display interface includes: The preset window manager is invoked, and the window pinning status information of the control application is configured into the control window process corresponding to the control application through the preset configuration interface of the control application, so that the control elements provided by the control application are pinned to the top in the current display interface.
6. The method according to claim 1, characterized in that, The step of removing the full-screen on-top state information of the focused window includes: The preset window manager is invoked to remove the full-screen on-top state information of the focused window in the process of the focused window, so that the focused window is in a non-on-top state.
7. The method according to claim 1, characterized in that, The display interface of the control application is displayed on top, and the focused window is displayed in full screen in the area outside the control elements provided by the control application, including: The preset window manager is invoked to hide the taskbar of the operating system interface, thereby obtaining the target display interface; wherein, the target display interface displays the control elements provided by the control application at the top; The focus window is displayed in full screen on the target display interface.
8. A window display device, characterized in that, Applied to a display device, the display device for the window includes: The top-of-the-line unit is used to display the control elements provided by the control application at the top of the current display interface in response to the activation of the control application; An adjustment unit is used to remove the full-screen on-top state information of the focus window in response to an operation that displays the focus window in full screen in the current display interface. An execution unit is used to display the interface of the control application on top, and to display the focus window in full screen in the area outside the control elements provided by the control application.
9. A display device, characterized in that, The display device includes: a memory, a processor, and a computer program stored in the memory and executable on the display device, wherein the processor executes the computer program to implement the steps of the window display method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the window display method as described in any one of claims 1 to 7.