Control method and electronic equipment

By detecting the window focus and connection status, using information such as gaze focus and input focus to predict user operations, the problems of lag and interface redrawing in cross-device window management are solved, and smarter window switching and management are realized, improving user experience.

CN120353526APending Publication Date: 2025-07-22LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510220680.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

In the prior art, the intelligent demand for cross-device window management is not fully met, resulting in poor user experience, especially when display devices switch, it is prone to lag and interface redrawing problems.

Method used

By detecting the disappearance and connection status of the window, using the focus of gaze, input focus, schedule information, operation information and body information, etc., to predict the user's operation intention, switch the window from one display device to another display device in advance, and create window belongings in the virtual display device to reduce interface redrawing and lag.

Benefits of technology

Improves user experience, reduces lags and interface redrawing problems during display mode switching, and improves the intelligence level of cross-device window management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353526A_ABST
    Figure CN120353526A_ABST
Patent Text Reader

Abstract

The invention provides a control method and electronic device.The control method comprises the steps that in response to first information representing that a first window meets a first condition, a display area of the first window is switched from an area corresponding to first display equipment to an area corresponding to second display equipment; wherein the first condition is different from a second condition, the second condition comprises that a focus of a window area disappears, and the focus comprises a watching focus of a target object and / or an input focus of input equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic devices, and particularly to a control method and an electronic device. Background Art

[0002] With the popularization of multi-display device interaction systems, users' intelligent requirements for cross-device window management are increasing day by day. Summary of the Invention

[0003] The present disclosure provides a control method and an electronic device to at least solve the above technical problems existing in the prior art.

[0004] According to a first aspect of the present disclosure, a control method is provided, including:

[0005] In response to the first information indicating that the first window meets the first condition, switching the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device;

[0006] Wherein, the first condition is different from the second condition, and the second condition includes the disappearance of the focus in the window area, and the focus includes the fixation focus of the target object and / or the input focus of the input device.

[0007] In the above solution, the method further includes:

[0008] Obtaining second information;

[0009] In response to the second information indicating that the connection between the first display device and the second display device meets the third condition, switching the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device;

[0010] The third condition indicates that the first display device is connected to the second display device through a first interface, and the first interface is used for electrical signal transmission and display signal transmission between devices in a conductive state.

[0011] In the above solution, the method further includes:

[0012] Obtaining third information;

[0013] In response to the third information indicating that the connection of the first interface is disconnected at a first moment, switching the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device; the first moment is a non-occurring moment and the difference from the second moment is less than a first target threshold.

[0014] In the above solution, the third information indicating that the connection of the first interface is disconnected at a first moment includes one of the following:

[0015] The third information includes schedule information, and the third information indicates that the position of the electronic device corresponding to the first display device has changed before the first moment, then the connection of the first interface is disconnected at the first moment;

[0016] The third information includes the gaze focus information of the target object, and the third information indicates that the gaze focus of the target object has shifted from the first display device to the second display device, then the connection of the first interface is disconnected at the first moment;

[0017] The third information includes the limb information of the target object, and the third information indicates that the target object has disconnected the connection line of the first interface, then the connection of the first interface is disconnected at the first moment;

[0018] The third information includes the operation information of the target object on multiple windows in the first display device, and the third information indicates that the target object closes or minimizes multiple windows in the first display device, then the connection of the first interface is disconnected at the first moment.

[0019] In the above solution, the first window meets the first condition, including one of the following:

[0020] The priority of the first window for display is lower than the target priority;

[0021] The difference between the moment when the first window received the last operation and the third moment is greater than the second target threshold;

[0022] The first window is minimized for display;

[0023] The computing resources required to redraw the user interface corresponding to the first window exceed the target threshold.

[0024] In the above solution, switching the display area of the window from the area corresponding to the first display device to the area corresponding to the second display device includes:

[0025] Create a virtual display device in the second display device, and transfer the ownership of the window displayed in the first display device to the virtual display device;

[0026] According to the display parameters of the window in the first display device, display the window in the virtual display device.

[0027] In the above solution, the method further includes:

[0028] In response to a click operation of the user on the second window in the virtual display device, then according to the display parameters of the second window in the first display device, display the second window in the second display device.

[0029] In the above solution, the method further includes:

[0030] In response to receiving an operation of a target object on the second window, deleting the movement information corresponding to the second window; the movement information at least includes display parameters in the first display device.

[0031] According to a second aspect of the present disclosure, there is provided an electronic device, the electronic device including:

[0032] A second display module for displaying a window;

[0033] A processor, configured to switch a display area of the first window from an area corresponding to the first display device to the second display module in response to first information indicating that the first window meets a first condition;

[0034] Wherein, the first condition is different from a second condition, and the second condition includes disappearance of a focus of a window area, and the focus includes a fixation focus of a target object and / or an input focus of an input device.

[0035] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understandable through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] By referring to the accompanying drawings and reading the following detailed description, the above and other objects, features, and advantages of the exemplary embodiments of the present disclosure will become easily understandable. In the drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, wherein:

[0037] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0038] Figure 1 Shows a first alternative flowchart of the control method provided by an embodiment of the present disclosure;

[0039] Figure 2 Shows a second alternative flowchart of the control method provided by an embodiment of the present disclosure;

[0040] Figure 3 Shows a third alternative flowchart of the control method provided by an embodiment of the present disclosure;

[0041] Figure 4 Shows a fourth alternative flowchart of the control method provided by an embodiment of the present disclosure;

[0042] Figure 5 Shows a fifth alternative flowchart of the control method provided by an embodiment of the present disclosure;

[0043] Figure 6 Shows the sixth optional flowchart of the control method provided by the embodiments of the present disclosure;

[0044] Figure 7 Shows the first display diagram provided by the embodiments of the present disclosure;

[0045] Figure 8 Shows the second display diagram provided by the embodiments of the present disclosure;

[0046] Figure 9 Shows the seventh optional flowchart of the control method provided by the embodiments of the present disclosure;

[0047] Figure 10 Shows the third display diagram provided by the embodiments of the present disclosure;

[0048] Figure 11 Shows the eighth optional flowchart of the control method provided by the embodiments of the present disclosure;

[0049] Figure 12 Shows the optional structural diagram of the electronic device provided by the embodiments of the present disclosure;

[0050] Figure 13 Shows the composition structural diagram of an electronic device according to an embodiment of the present disclosure. Detailed implementation manners

[0051] To make the objectives, features, and advantages of the present disclosure more obvious and understandable, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present disclosure.

[0052] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0053] In the following description, the terms "first / second" are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.

[0054] Unless otherwise defined, all technical and scientific terms used in this disclosure have the same meaning as commonly understood by those skilled in the technical field to which this disclosure belongs. The terms used in this disclosure are only for the purpose of describing the embodiments of this disclosure and are not intended to limit this disclosure.

[0055] It should be understood that in various embodiments of this disclosure, the magnitude of the sequence number of each implementation process does not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this disclosure.

[0056] Figure 1 The first optional flowchart of the control method provided by the embodiments of this disclosure is shown, and will be described according to each step.

[0057] Step S101, in response to the first information indicating that the first window meets the first condition, switch the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device.

[0058] In some embodiments, the first information may include window information displayed on the first display device; the window information may include at least one of the display priority, the layer where the window is located, the moment of the last received operation, and the computing resources required to redraw the user interface corresponding to the first window.

[0059] In some embodiments, the first condition is different from the second condition. The second condition includes the disappearance of the focus in the window area. The focus includes the gaze focus of the target object and / or the input focus of the input device. For example, it is detected that the gaze focus of the target user moves from the window area to other areas, resulting in the disappearance of the focus in the window area. For example, the window area is on the first display device, and the gaze focus moves from the first display device to other areas; or, it is detected that the input focus of the target user moves from the window area to other areas, resulting in the disappearance of the focus in the window area. For example, the mouse cursor or keyboard cursor moves from the first display device to the second display device.

[0060] In some embodiments, in response to the first information meeting the first condition, the first window is switched to the area corresponding to the second display device. Optionally, the ownership of the first window can be switched to the second display device, that is, the first window is displayed in the second display device next time; or, the display area of the first window can be switched from the area corresponding to the first display device to the area corresponding to the second display device.

[0061] Among them, if the electronic device is a notebook device, the second display device may be the on-board display device corresponding to the notebook device, and the first display device is an external display device; if the electronic device is a host computer case, the second display device is the main device connected to the host computer case, and the first display device is an external display device. If the electronic device is a dual-screen electronic device, the first display device and the second display device are respectively the two display devices corresponding to the electronic device.

[0062] In this way, through the control method provided by the embodiments of the present disclosure, in response to the first information indicating that the first window meets the first condition, the display area of the first window is switched from the area corresponding to the first display device to the area corresponding to the second display device. In this way, it is possible to sense the user's intention according to the first information, timely adjust the display area of the window, match the user's actual needs, and improve the user experience.

[0063] Figure 2 FIG. shows a second optional flowchart of the control method provided by the embodiments of the present disclosure, and will be described according to each step.

[0064] Step S201, obtain second information.

[0065] In some embodiments, the second information may include interface connection information between the first display device and the main body corresponding to the second display device.

[0066] Specifically, the first display device may be an external display. If the second electronic device is the on-board display device corresponding to a notebook computer, the main body corresponding to the second display device is the notebook computer, and the second information is the interface connection information between the notebook computer and the first display device, and the interface is provided on the first display device. The interface connection information may include the number of connected interfaces and the use of each interface; the use may include data transmission or charging; if the number of interfaces is 1, it means that the first display device and the notebook computer are connected through an interface on the first display device, and this interface is used for power supply and data transmission. The data includes display data; if the number of interfaces is greater than or equal to 2, it means that the first display device and the notebook computer are connected through an interface on the first display device, and this interface is used for data transmission; another interface on the first display device is used for power supply.

[0067] In other embodiments, the first display device may be an external display. If the second electronic device is the on-board display device corresponding to a desktop computer, the main body corresponding to the second display device is the computer host, and the second information is the interface connection information between the computer host and the first display device, and the interface is provided on the first display device. In this case, the second information may include the positional relationship between the first display device and the second display device, such as being in the same plane or in different planes.

[0068] In some other embodiments, the first display device may be a display device corresponding to one of the extended screens of an electronic device with multi-screen display, and the interface connection information may include the display mode of the electronic device and the working state of the extended screen.

[0069] Alternatively, in specific implementation, the first display device and the second display device may be different display devices corresponding to a folding screen device; when they are in the same plane, they form an integrated display data; when they are in different planes, they display data independently; optionally, the second information may further include the position of the magnetic keyboard, such as the magnetic keyboard is adsorbed on the screen of any display device, or the magnetic keyboard is not adsorbed on the screen of any display device (in this case, it is similar to the prior art and the magnetic keyboard is used as an external keyboard).

[0070] Step S202, in response to the second information indicating that the connection between the first display device and the second display device meets the third condition, switch the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device.

[0071] In some embodiments, in response to the third condition indicating that the first display device is connected to the second display device through a first interface, and the first interface is used for electrical signal transmission and display signal transmission between devices in the on-path state. The first interface is disposed on the electronic device corresponding to the second display device.

[0072] That is to say, in response to satisfying that the first display device transmits electrical signals and display signals to the electronic device corresponding to the second display device through the first interface (that is, simultaneously supplying power and transmitting display data based on the first interface), the first information is obtained, and step S101 is executed.

[0073] Or, in response to satisfying that the magnetic keyboard is not adsorbed on the screen of any display device (in this case, it is similar to the prior art and the magnetic keyboard is used as an external keyboard), the first information is obtained, and step S101 is executed.

[0074] In some embodiments, the first condition may include at least one of the lowest display priority of the window information, the window being on the bottom layer, the difference between the time of the most recent received operation and the third time being greater than the second target threshold, and the relatively high computing resources required to redraw the user interface corresponding to the first window.

[0075] Thus, in the case where the first display device transmits data and supplies power only through the first interface, the window at the bottom layer, the window with the lowest priority, the window that has not received an operation for a certain period of time, and the window that requires a large amount of computing resources for redrawing in the first display device are switched from the area corresponding to the first display device to the area corresponding to the second display device; to avoid, after the connection of the first interface is disconnected, on the one hand, due to the disconnection of the charging power supply, resulting in a serious freeze caused by an instantaneous power consumption drop, and on the other hand, due to a large number of user interface redraws (UI redraws) generated when the display mode is restored from an extended screen to a single-screen display mode, thus improving the user experience. Or, in the case where the electronic device is a folding screen device, the window at the bottom layer, the window with the lowest priority, the window that has not received an operation for a certain period of time, and the window that requires a large amount of computing resources for redrawing in the first display device are switched from the area corresponding to the first display device to the area corresponding to the second display device; to avoid the problem of the electronic device freezing caused by a large number of user interface redraws (UI redraws) generated when the folding screen device adsorbs a magnetic keyboard or changes its posture (such as from a flat surface to a folded state), thus improving the user experience.

[0076] Figure 3 FIG. 3 shows a third alternative flowchart of the control method provided by the embodiments of the present disclosure, and will be described according to each step.

[0077] Step S301, obtain third information.

[0078] In some embodiments, in response to the second information indicating that the connection between the first display device and the second display device satisfies a third condition, third information is obtained.

[0079] In some embodiments, the third information may include at least one of schedule information, operation information, and target object limb information.

[0080] Among them, the schedule information may include schedule arrangement information of the target object at a first moment, such as at least one of meeting information, going out information, work information, and rest information; the operation information may include operation information of the target object for the window in the first display device, and may include an operation instruction for the window, and the operation instruction may include at least one of a minimization instruction, a closing instruction, or a moving instruction, and the moving instruction may include an instruction to move from the first display device to the second display device; the limb information of the target object includes limb movement information of the target object operating the electronic device collected by the image acquisition device of the electronic device.

[0081] Step S302, in response to the third information indicating that the connection of the first interface is disconnected at the first moment, switch the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device.

[0082] In some embodiments, the first moment is a non-occurrence moment and the difference from the second moment is less than a first target threshold. The first target threshold can be set according to actual requirements.

[0083] Thus, if it is determined according to the third information that the connection of the first interface is disconnected at the first moment, in order to reduce user operations or avoid the problem of electronic device lag caused by a large number of user interface redraws when the display mode reverts from an extended screen to a single-screen display mode, the display area of the first window is switched from the area corresponding to the first display device to the area corresponding to the second display device in advance.

[0084] Figure 4 FIG. 4 shows a fourth optional flowchart of the control method provided by the embodiments of the present disclosure, and will be described according to each step.

[0085] Step S401, obtain the third information.

[0086] The specific step flow of step S401 is the same as that of step S301, and will not be repeated here.

[0087] Step S402, determine the state of the connection of the first interface at the first moment based on the third information.

[0088] In some embodiments, if the third information is schedule information, the state of the first interface at the first moment is determined according to the start moment of a meeting, going out, or rest in the schedule information; the first moment can be the start moment of a meeting, going out, or rest.

[0089] In some embodiments, if the third information is operation information, the moment corresponding to the first time interval after the current moment is determined as the first moment, and the state of the first interface at the first moment is determined. The first time interval can be set according to actual requirements.

[0090] In some embodiments, if the third information is body information, the moment corresponding to the second time interval after the current moment is determined as the first moment, and the state of the first interface at the first moment is determined. The second time interval can be set according to actual requirements.

[0091] Step S403, in response to the third information indicating that the connection of the first interface is disconnected at the first moment, switch the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device.

[0092] In some embodiments, if the third information is schedule information, the response to the disconnection of the connection of the first interface characterized by the third information at the first moment may include that the schedule information records that the target object will move to another space with the electronic device to attend a meeting at the first moment and needs to disconnect the connection with the first display device, or the target object will go out, rest, etc. at the first moment and disconnect the connection with the first display device, then the display area of the first window is switched from the area corresponding to the first display device to the area corresponding to the second display device.

[0093] In some other embodiments, if the third information is operation information, the response to the disconnection of the connection of the first interface characterized by the third information at the first moment may include performing operation instructions on at least two windows, such as performing a minimization instruction on at least two windows, performing a close instruction on at least two windows, or performing a move instruction on at least two windows. The move instruction may include at least an instruction to move from the first display device to the second display device; that is, if the third information characterizes that at least two windows displayed on the first display device are removed from the area corresponding to the first display device, then the display area of the first window is switched from the area corresponding to the first display device to the area corresponding to the second display device. In this way, when multiple windows are displayed on the first display device, the operation purpose can be inferred based on the operation trend, the target object's operation can be predicted in advance, and the target object's purpose can be directly achieved.

[0094] In some other operations, if the third information is limb information, the response to the disconnection of the connection of the first interface characterized by the third information at the first moment may include that the first target part approaches the second interface corresponding to the first interface or the second target part approaches the first interface or the second interface; then the display area of the first window is switched from the area corresponding to the first display device to the area corresponding to the second display device. For example, the first target part approaches the second interface corresponding to the first interface or the second target part approaches the first interface or the second interface. The first target part may be a hand, and the second interface is the interface on the electronic device connected to the first display device. The first target part approaching the second interface corresponding to the first interface indicates that the target object wants to disconnect the connection between the electronic device and the first display device; the second target part may be a hand or a body, and the second target part approaching the first interface or the second interface indicates that the target object wants to disconnect the connection between the electronic device and the first display device. In this way, the purpose of the limb information is predicted through the limb information, the target object's operation is predicted in advance, and the window displayed on the first display device is switched to the second display device in advance, avoiding the problem of electronic device lag caused by a large number of user interface redraws when the display mode is restored from an extended screen to a single screen display mode, and improving the user experience.

[0095] Thus, through the control method provided by the embodiments of the present disclosure, by at least one of the schedule information, operation information, and limb information of the target object, the operation of the target object is predicted in advance, and the operation purpose is inferred based on the trend of the operation. By predicting the operation of the target object in advance and directly achieving the purpose of the target object, while reducing the operation of the target object, it is also possible to avoid the problem of electronic device lag caused by a large number of user interface redraws when the display mode is restored from an extended screen to a single-screen display mode, thereby improving the user experience.

[0096] Figure 5 FIG. 5 shows a fifth alternative flowchart of the control method provided by the embodiments of the present disclosure, and will be described according to each step.

[0097] Step S501: Receive the first information.

[0098] In some embodiments, the first information may include window information displayed on the first display device; the window information may include at least one of the display priority, the layer where the window is located, the moment when the last operation was received, and the computing resources required to redraw the user interface corresponding to the first window.

[0099] Step S502: In response to the first information indicating that the first window meets the first condition, switch the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device.

[0100] In some embodiments, the first information indicating that the first window meets the first condition may include that the display priority of the first window is lower than the target priority; the target priority may be set according to actual needs; the priority may be determined according to at least one of user settings, window display duration, and usage duration of the application corresponding to the window.

[0101] Specifically, as the electronic device runs continuously, there are situations where some windows are opened but no relevant operations are received for a long time, or the windows are minimized and not displayed again. In this case, the priority of the window will gradually decrease. In response to the priority of the first window being lower than the target priority, the display area of the first window is switched from the area corresponding to the first display device to the area corresponding to the second display device, avoiding the problem of electronic device lag caused by a large number of user interface redraws when the display mode is restored from an extended screen to a single-screen display mode, thereby improving the user experience. Optionally, the first window may be displayed at the bottom layer of the second display device; when an operation is received for the first window displayed in the second display device, the movement information of the first window is deleted; or, when the first window displayed in the second display device is at the top layer, the movement information of the first window is deleted. The movement information includes the movement information from the first display device to the second display device.

[0102] In some embodiments, the first information indicating that the first window meets the first condition may include that the difference between the time of the most recent reception of an operation by the first window and the third moment is greater than a second target threshold; wherein the third moment may be the current moment or any set moment; and the second target threshold may be set according to actual requirements.

[0103] During specific implementation, if the first window has not received an operation for a long time, the display area of the first window is switched from the area corresponding to the first display device to the area corresponding to the second display device. Optionally, the first window may be displayed at the bottom layer of the second display device; when an operation is received by the first window displayed in the second display device, the movement information of the first window is deleted; or, when the first window displayed in the second display device is at the top layer, the movement information of the first window is deleted. The movement information includes the movement information from the first display device to the second display device.

[0104] In some embodiments, the first information indicating that the first window meets the first condition may include that the first window is minimized and displayed. Optionally, when a window restoration operation is received by the first window, the first window is restored and displayed in the first display device according to the display information of the first window in the first display device. The display information may include the display position, display size, display priority, and display hierarchy.

[0105] In some embodiments, the first information indicating that the first window meets the first condition may include that the computing resources required to redraw the user interface corresponding to the first window exceed a target threshold. The target threshold may be set according to actual requirements. Redrawing means that the final rendering effect is the same. In the case of the same rendering effect, the higher the resource occupancy, the higher the window complexity and the longer the time.

[0106] In this way, through the control method provided by the embodiments of the present disclosure, the window at the bottom layer in the first display device, the window with the lowest priority, the window that has not received an operation within a certain period of time, and the window that requires a large amount of computing resources for redrawing are switched from the area corresponding to the first display device to the area corresponding to the second display device; avoiding the problem of electronic device lag caused by a large number of user interface redraws when the display mode is restored from an extended screen to a single-screen display mode after the connection of the first interface is disconnected, and improving the user experience.

[0107] Figure 6 FIG. shows a sixth alternative flowchart of the control method provided by the embodiments of the present disclosure, and will be described according to each step.

[0108] In any one of the above steps S101, S202, S302, S403, and S502, switching the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device includes:

[0109] Step S601, create a virtual display device in the second display device, and transfer the ownership of the window displayed in the first display device from the first display device to the virtual display device.

[0110] In some alternative embodiments, create a virtual display device in the second display device; transfer the ownership of the window displayed in the first display device from the first display device to the virtual display device.

[0111] In some alternative embodiments, it is also possible to determine the display parameters of the window in the first display device, and the display parameters may include at least one of display size, display position, display level, and priority.

[0112] Step S602, display the window in the virtual display device according to the display parameters of the window in the first display device.

[0113] Figure 7 Fig. 1 shows a first display schematic diagram provided by an embodiment of the present disclosure.

[0114] As Figure 7 shown, if it is determined that the first window meets the first condition, after determining to switch the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device, create a virtual display page corresponding to the virtual display device in the area of the second display device, and display the first window in the virtual display page.

[0115] Figure 8 Fig. 2 shows a second display schematic diagram provided by an embodiment of the present disclosure.

[0116] As Figure 8 shown, if it is determined that the third information indicates that the connection of the first interface is disconnected at the first moment, then switch the display areas of all the windows displayed in the first display device from the areas corresponding to the first display device to the areas corresponding to the second display device, and display all the windows in the areas of the second display device according to the display parameters.

[0117] In this way, through the control method provided by the embodiment of the present disclosure, the ownership of the window is switched from the area corresponding to the first display device to the area corresponding to the second display device and moved into the virtual display device, avoiding the layout chaos caused by window transfer, facilitating the target object to find the switched window and operate, and improving the user experience.

[0118] Figure 9The seventh optional flowchart of the control method provided by the embodiments of the present disclosure is shown, and will be described according to each step.

[0119] Step S701, in response to a click operation of a target object on a second window in a virtual display device, the second window is displayed in the second display device according to the display parameters of the second window in the first display device.

[0120] In some embodiments, if the target object needs to control the second window in the virtual display device, the second window is displayed at a corresponding position in the second display device according to the click operation of the target user and the display parameters of the second window in the first display device.

[0121] Figure 10 The third display schematic diagram provided by the embodiments of the present disclosure is shown.

[0122] As Figure 10 shown, in response to a click operation received by window 2 in the virtual display device, it is displayed in the corresponding area of the second display device according to the display parameters of window 2 in the first display device.

[0123] In some optional embodiments, the method may further include deleting the movement information corresponding to the second window; the movement information includes at least one of the display parameters in the first display device and the window movement information.

[0124] In this way, the target object can quickly locate the second window in the second display device according to the information displayed by the window in the first display device and perform operations, reducing the search time of the target object and improving the user experience.

[0125] Figure 11 The eighth optional flowchart of the control method provided by the embodiments of the present disclosure is shown, and will be described according to each step.

[0126] Step S901, in response to the power supply interface and the display interface of the first display device being the same interface, determine the connection state of the first interface.

[0127] In some embodiments, in response to the first display device supplying power and transmitting data based on the first interface, determine the connection state of the first interface. The connection state includes the connection between the first display device and the electronic device corresponding to the second display device; or the disconnection between the first display device and the electronic device.

[0128] Step S902, in response to the connection between the first display device and the electronic device corresponding to the second display device, monitor the window in the first display device.

[0129] In some embodiments, if the first window of the first display device is in a long-term inactive state and is covered by the windows of other applications for a long time, after recording information such as the screen where the first window is located, its position, and size, the first window is moved to the second display device and placed at the bottom layer.

[0130] Correspondingly, when the user operates the window moved from the first display device on the second display device, or when the first window is not covered, the previous movement record information is cleared.

[0131] In some embodiments, if the first window of the first display device receives a minimize instruction, after waiting for the system minimize animation to complete, the first window is moved to the second display device.

[0132] Correspondingly, when the first window receives a restore operation, the first window is restored to the first display device according to the previously recorded information, including its position and size. By this operation, the computational workload of UI redrawing when the display is disconnected can be alleviated, and the time when the user cannot operate when disconnecting the display connection can be shortened.

[0133] Step S903, in response to the disconnection of the electronic device corresponding to the first display device and the second display device, a virtual display device is created.

[0134] In some embodiments, a virtual display device with the same parameters as the first display device is created through the driver to simulate the windows accessed in the first display device; a new desktop is created in the second display device; the windows currently in the virtual display are moved to the new desktop; the virtual display is disconnected; when the windows in the new desktop receive operations, according to the display information of the windows, the windows are displayed in the second display device.

[0135] Figure 12 The optional structural schematic diagram of the electronic device provided by the embodiments of the present disclosure is shown, and will be described according to each part.

[0136] In some embodiments, the electronic device 800 includes a second display module 810 and a processor 811.

[0137] The second display module 810 is used to display windows;

[0138] The processor 811 is used to, in response to the first information indicating that the first window meets the first condition, switch the display area of the first window from the area corresponding to the first display device to the second display module 810;

[0139] Wherein, the first condition is different from the second condition, and the second condition includes the disappearance of the focus of the window area, and the focus includes the gaze focus of the target object and / or the input focus of the input device.

[0140] The electronic device 800 may further include a first interface 812.

[0141] The first interface 812 is used to connect to the first display device, and the first interface 812 transmits electrical signals and display signals between devices in the path state.

[0142] The processor 811 is further configured to switch the display area of the first window from the area corresponding to the first display device to the second display module 810 when it is determined that the connection state between the first interface 812 and the first display device meets a third condition.

[0143] The third condition indicates that the first display device is connected to the second display module 810 through the first interface 812, and the first interface 812 is used for electrical signal transmission and display signal transmission between devices in the path state.

[0144] The processor 811 is further configured to obtain third information.

[0145] In response to the third information indicating that the connection of the first interface 812 is disconnected at a first moment, switch the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display module 810; the first moment is a non-occurring moment and the difference from the second moment is less than a first target threshold.

[0146] The processor 811 is specifically configured to perform one of the following:

[0147] The third information includes schedule information, and the third information indicates that the location of the electronic device 800 corresponding to the first display device changes before the first moment, then the connection of the first interface 812 is disconnected at the first moment.

[0148] The third information includes limb information of a target object, and the third information indicates that the target object disconnects the connection line of the first interface 812, then the connection of the first interface 812 is disconnected at the first moment.

[0149] The third information includes operation information of the target object on multiple windows in the first display device, and the third information indicates that the target object closes or minimizes multiple windows in the first display device, then the connection of the first interface 812 is disconnected at the first moment.

[0150] In some embodiments, the first window meets a first condition, including one of the following:

[0151] The display priority of the first window is lower than the target priority.

[0152] The difference between the time of the most recent reception operation of the first window and the third time is greater than the second target threshold;

[0153] The first window is minimized and displayed;

[0154] The computing resources required to redraw the user interface corresponding to the first window exceed the target threshold.

[0155] The processor 811 is specifically configured to create a virtual display device in the second display module 810, and transfer the ownership of the window displayed in the first display device to the virtual display device;

[0156] According to the display parameters of the window in the first display device, display the window in the virtual display device.

[0157] The processor 811 is further configured to, in response to a click operation of a target object on a second window in the virtual display device, display the second window in the second display module 810 according to the display parameters of the second window in the first display device.

[0158] The processor 811 is further configured to, in response to receiving an operation of a target object on the second window, delete the movement information corresponding to the second window; the movement information at least includes the display parameters in the first display device.

[0159] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device and a readable storage medium.

[0160] Figure 13 A schematic block diagram of an exemplary electronic device 800 that can be used to implement the embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0161] As Figure 13As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to computer programs stored in a read-only memory (ROM) 802 or computer programs loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0162] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, an optical disc, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0163] The computing unit 801 can be various general-purpose and / or dedicated processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 executes the various methods and processes described above, such as the control method. For example, in some embodiments, the control method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the control method described above can be executed. Alternatively, in other embodiments, the computing unit 801 can be configured to execute the control method in any other appropriate manner (e.g., by means of firmware).

[0164] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on a chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0165] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.

[0166] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0167] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).

[0168] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.

[0169] A computer system can include a client and a server. The client and the server are generally far from each other and usually interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, or a server of a distributed system, or a server incorporating a blockchain.

[0170] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitations are imposed herein.

[0171] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of this disclosure, "a plurality" means two or more unless otherwise specifically defined.

[0172] As described above, it is only the specific implementation manner of the present disclosure. However, the protection scope of the present disclosure is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present disclosure can easily think of changes or substitutions, which should all be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims described above.

Claims

1. A control method, the method comprising: In response to the first information indicating that the first window meets the first condition, switching the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device; Wherein, the first condition is different from the second condition, and the second condition includes the disappearance of the focus of the window area, and the focus includes the fixation focus of the target object and / or the input focus of the input device.

2. The method according to claim 1, the method further comprising: Obtaining second information; In response to the second information indicating that the connection between the first display device and the second display device meets the third condition, switching the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device; The third condition indicates that the first display device is connected to the second display device through a first interface, and the first interface is used for electrical signal transmission and display signal transmission between devices in the on-path state.

3. The method according to claim 2, the method further comprising: Obtaining third information; In response to the third information indicating that the connection of the first interface is disconnected at a first moment, switching the display area of the first window from the area corresponding to the first display device to the area corresponding to the second display device; the first moment is a non-occurring moment and the difference from the second moment is less than a first target threshold.

4. The method according to claim 3, the third information indicating that the connection of the first interface is disconnected at a first moment includes one of the following: The third information includes schedule information, and the third information indicates that the position of the electronic device corresponding to the first display device has changed before the first moment, then the connection of the first interface is disconnected at the first moment; The third information includes the limb information of the target object, and the third information indicates that the target object disconnects the connection line of the first interface, then the connection of the first interface is disconnected at the first moment; The third information includes the operation information of the target object on multiple windows in the first display device, and the third information indicates that the target object closes or minimizes multiple windows in the first display device, then the connection of the first interface is disconnected at the first moment.

5. The method according to claim 1, the first window meeting the first condition includes one of the following: The display priority of the first window is lower than the target priority; The difference between the moment when the first window received the last operation and the third moment is greater than a second target threshold; The first window is minimized; The computing resources required to redraw the user interface corresponding to the first window exceed the target threshold.

6. The method according to claim 2 or 5, switching the display area of the window from the area corresponding to the first display device to the area corresponding to the second display device includes: Creating a virtual display device in the second display device, and transferring the ownership of the window displayed in the first display device to the virtual display device; Displaying the window in the virtual display device according to the display parameters of the window in the first display device.

7. The method according to claim 6, the method further comprising: In response to a click operation of a target object on a second window in a virtual display device, the second window is displayed in the second display device according to the display parameters of the second window in the first display device.

8. The method according to claim 7, the method further comprising: In response to receiving an operation of a target object on the second window, deleting the movement information corresponding to the second window; The movement information at least includes display parameters in the first display device.

9. An electronic device, comprising: A second display module for displaying a window; A processor for, in response to first information indicating that the first window meets a first condition, switching the display area of the first window from the area corresponding to the first display device to the second display module; Wherein, the first condition is different from a second condition, and the second condition includes the disappearance of the focus of the window area, and the focus includes the gaze focus of the target object and / or the input focus of the input device.

10. The electronic device according to claim 9, further comprising: A first interface for connecting to the first display device, and the first interface performs electrical signal transmission and display signal transmission between devices in a connected state; The processor is further configured to, when determining that the connection state between the first interface and the first display device meets a third condition, switch the display area of the first window from the area corresponding to the first display device to the second display module.