Processing method and apparatus, and electronic device for window management in split screen
A processing method includes displaying at least two windows in at least two split-screen regions based on a split-screen command, obtaining an input operation for a target window in the at least two windows, determining adjustment parameters of a correlation window related to the target window and among the at least two windows in response to the input operation, and adjusting the correlation window based on the adjustment parameters. The region of each of the at least two windows corresponds to a split-screen region of the at least two split-screen regions. Each of the at least two windows includes an interactive interface. The correlation window before the correlation window adjustment is different from the correlation window after the correlation window adjustment.
1 . A processing method, comprising:
displaying, on a display screen of an electronic device, at least three windows in at least three split-screen regions based on a split-screen command, wherein a region of each of the at least three windows corresponds to a split-screen region of the at least three split-screen regions, and each of the at least three windows includes an interactive interface;
obtaining a drag operation to drag a target window from a position of the target window in a first split-screen region of the at least three split-screen regions to a position of a correlation window in a second split-screen region of the at least three split-screen regions;
in response to the drag operation, confirming, by a window manager, an area size of the target window and an area size of the correlation window, and establishing, by the window manager, a subtask to adjust the target window and the correlation window; and
in response to the subtask, establishing, by a task organizer controller, a first task list corresponding to the target window and a second task list corresponding to the correlation window, moving, by the task organizer controller, the first task list to the correlation window, and moving, by the task organizer controller, the second task list to the target window.
2 . The method according to claim 1 , further comprising:
in response to a closing operation for closing the target window, determining the area size of the correlation window.
3 . The method according to claim 2 , wherein determining the area size of the correlation window includes:
obtaining the area size of the target window and an original area size of the correlation window, and
determining that the area size of the correlation window is a combination of the area size of the target window and the original area size of the correlation window.
4 . The method according to claim 1 , wherein displaying the at least three windows in the at least three split-screen regions based on the split-screen command includes displaying four windows in four split-screen regions respectively based on the split-screen command.
5 . The method according to claim 1 , further comprising:
adjusting the correlation window based on adjustment parameters, including:
in response to the drag operation, moving the interactive interface included in the target window from the position of the target window in the first split-screen region to the position of the correlation window in the second split-screen region, and moving the interactive interface included in the correlation window from the position of the correlation window in the second split-screen region to the position of the target window in the first split-screen region, wherein one or more windows of the at least three windows other than the target window and the correlation window remain unchanged, and a size and a position of each of the at least three split-screen regions remain unchanged in response to the drag operation.
6 . The method according to claim 5 , wherein the adjustment parameters at least include:
the area size of the correlation window; and
the interactive interface included in the correlation window.
7 . The method according to claim 1 , wherein a size of the first split-screen region is different from a size of the second split-screen region, the area size of the target window is different from the area size of the correlation window, and the area size of the target window and the area size of the correlation window remain unchanged in response to the drag operation.
8 . A processing apparatus, comprising:
a processor configured to execute instructions stored in a memory to at least:
display, through a window manager and on a display screen of the processing apparatus, at least three windows in at least three split-screen regions based on a split-screen command, a region of each of the at least three windows corresponding to a split-screen region of the at least three split-screen regions, and each of the at least three windows including an interactive interface;
obtain, through a split-screen controller, a drag operation for a target window among the at least three windows to drag the target window from a position of the target window in a first split-screen region of the at least three split-screen regions to a position of a correlation window in a second split-screen region of the at least three split-screen regions;
in response to the drag operation, confirm, through a window organize controller, an area size of the target window and an area size of the correlation window, and establish a subtask to adjust the target window and the correlation window to the boundaries; and
in response to the subtask, establish, through a task organizer controller, a first task list corresponding to the target window and a second task list corresponding to the correlation window, move the first task list to the correlation window, and move the second task list to the target window.
9 . The apparatus according to claim 8 , wherein:
the window manager is further configured to perform:
determining the area size of the correlation window in response to a closing operation for closing the target window.
10 . The apparatus according to claim 9 , wherein the window manager is further configured to perform:
obtaining the area size of the target window and an original area size of the correlation window, and
determining that the area size of the correlation window is a combination of the area size of the target window and the original area size of the correlation window.
11 . The apparatus according to claim 8 , wherein:
the task organizer controller is further configured to:
adjust the correlation window based on adjustment parameters, including:
in response to the drag operation, moving the interactive interface included in the target window from the position of the target window in the first split-screen region to the position of the correlation window in the second split-screen region, and moving the interactive interface included in the correlation window from the position of the correlation window in the second split-screen region to the position of the target window in the first split-screen region, wherein one or more windows of the at least three windows other than the target window and the correlation window remain unchanged, and a size and a position of each of the at least three split-screen regions remain unchanged in response to the drag operation.
12 . The apparatus according to claim 11 , wherein the adjustment parameters at least include:
the area size of the correlation window; and
the interactive interface included in the correlation window.
13 . An electronic device, comprising:
one or more processors; and
a memory coupled to the one or more processors and storing computer programs that, when being executed, cause the one or more processors to perform:
displaying, on a display screen of the electronic device, at least two windows in at least three split-screen regions based on a split-screen command, wherein a region of each of the at least three windows corresponds to a split-screen region of the at least three split-screen regions, and each of the at least three windows includes an interactive interface;
obtaining a drag operation to drag a target window from a position of the target window in a first split-screen region of the at least three split-screen regions to a position of a correlation window in a second split-screen region of the at least three split-screen regions;
in response to the drag operation, confirming, by a window manager, an area size of the target window and an area size of the correlation window, and establishing, by the window manager, a subtask to adjust the target window and the correlation window; and
in response to the subtask, establishing, by a task organizer controller, a first task list corresponding to the target window and a second task list corresponding to the correlation window, moving, by the task organizer controller, the first task list to the correlation window, and moving, by the task organizer controller, the second task list to the target window.
14 . The electronic device according to claim 13 , wherein:
the one or more processors are further configured to perform:
in response to a closing operation for closing the target window, determining the area size of the correlation window.
15 . The electronic device according to claim 14 , wherein the one or more processors are further configured to perform:
obtaining the area size of the target window and an original area size of the correlation window, and
determining that the area size of the correlation window is a combination of the area size of the target window and the original area size of the correlation window.
16 . The electronic device according to claim 13 , wherein the one or more processors are further configured to perform:
adjusting the correlation window based on adjustment parameters, including:
in response to the drag operation, moving the interactive interface included in the target window from the position of the target window in the first split-screen region to the position of the correlation window in the second split-screen region, and moving the interactive interface included in the correlation window from the position of the correlation window in the second split-screen region to the position of the target window in the first split-screen region, wherein one or more windows of the at least three windows other than the target window and the correlation window remain unchanged, and a size and a position of each of the at least three split-screen regions remain unchanged in response to the drag operation.
17 . The electronic device according to claim 16 , wherein the adjustment parameters at least include:
the area size of the correlation window; and
the interactive interface included in the correlation window.