CN113467666B - Method and device for adjusting application window - Google Patents

Method and device for adjusting application window Download PDF

Info

Publication number
CN113467666B
CN113467666B CN202111036072.8A CN202111036072A CN113467666B CN 113467666 B CN113467666 B CN 113467666B CN 202111036072 A CN202111036072 A CN 202111036072A CN 113467666 B CN113467666 B CN 113467666B
Authority
CN
China
Prior art keywords
application window
window
adjustment
current application
adjusted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111036072.8A
Other languages
Chinese (zh)
Other versions
CN113467666A (en
Inventor
刘成城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing Jingling Information System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingling Information System Technology Co Ltd filed Critical Beijing Jingling Information System Technology Co Ltd
Priority to CN202111036072.8A priority Critical patent/CN113467666B/en
Publication of CN113467666A publication Critical patent/CN113467666A/en
Application granted granted Critical
Publication of CN113467666B publication Critical patent/CN113467666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention provides a method and a device for adjusting an application window, wherein the method comprises the following steps: receiving an adjusting instruction of a current application window sent by a window manager; performing first adjustment on the current application window to obtain the current application window after the first adjustment; performing second adjustment on the association interface according to the first adjustment of the current application window to obtain a second adjusted association interface, wherein the current application window and the association interface are in a synthetic relationship, and the first adjustment and the second adjustment are in a corresponding relationship; and sending the first adjusted current application window and the second adjusted associated interface to the window manager, and calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window. The invention realizes the function that the application window can be adjusted according to the self adjustment strategy or the system recommendation direction.

Description

Method and device for adjusting application window
Technical Field
The invention relates to the technical field of computer software, in particular to a method and a device for adjusting an application window.
Background
The mobile operating system (such as Android and iOS) can support the automatic adjustment of the UI (user interface) of the application according to the direction of the equipment.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting an application window, which realize the function that the application window can be adjusted according to the self adjustment strategy or the system recommendation direction.
In a first aspect, an embodiment of the present invention provides a method for adjusting an application window, where the method includes:
receiving an adjusting instruction of a current application window sent by a window manager;
performing first adjustment on the current application window to obtain the current application window after the first adjustment;
performing second adjustment on the association interface according to the first adjustment of the current application window to obtain a second adjusted association interface, wherein the current application window and the association interface are in a synthetic relationship, and the first adjustment and the second adjustment are in a corresponding relationship;
and sending the first adjusted current application window and the second adjusted associated interface to the window manager, and calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window.
According to the method for adjusting the application window provided by the invention, the method further comprises the following steps:
and matching the synthesized application window with a display side through the window manager, and displaying on the display side.
According to the method for adjusting the application window provided by the invention, before the receiving of the adjustment instruction of the current application window sent by the window manager, the method comprises the following steps:
generating a window description and a protocol interface corresponding to the application window;
and binding the window description of the application window with a protocol interface, and reporting an adjustment direction list supported by the application window to the window manager through the protocol interface so that the window manager stores the adjustment direction list.
According to the method for adjusting an application window provided by the present invention, the first adjustment of the current application window specifically includes: performing first size adjustment on a current application window;
performing second adjustment on the associated interface according to the first adjustment of the current application window, specifically including: and performing corresponding second size adjustment on the associated interface according to the first size adjustment of the current application window.
According to the method for adjusting an application window provided by the present invention, the first adjustment of the current application window specifically includes: performing first rotation adjustment on a current application window;
performing second adjustment on the associated interface according to the first adjustment of the current application window, specifically including: and performing corresponding second rotation adjustment on the associated interface according to the first rotation adjustment of the current application window.
According to the method for adjusting the application window, the window manager comprises a canvas area corresponding to the display area of the display side;
the invoking the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window includes:
calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain an initial application window;
and calling the window manager to perform corresponding rotation operation on the initial application window according to the size of the initial application window and the size of the canvas area to obtain the synthesized application window.
According to the method for adjusting an application window provided by the present invention, after obtaining the synthesized application window, the method further includes:
and calling the window manager to perform corresponding direction adjustment on the coordinate system of the input equipment in the display area according to the synthesized application window.
In a second aspect, an embodiment of the present invention provides an apparatus for adjusting an application window, where the apparatus is disposed at an application end, and the apparatus includes: the device comprises a receiving module, a first adjusting module, a second adjusting module and a synthesizing module. The window manager comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving an adjusting instruction of a current application window sent by the window manager; the first adjusting module is used for carrying out first adjustment on the current application window to obtain the current application window after the first adjustment; a second adjusting module, configured to perform a second adjustment on the association interface according to the first adjustment of the current application window, and obtain a second adjusted association interface, where the current application window and the association interface are in a composite relationship, and the first adjustment and the second adjustment are in a corresponding relationship; and the synthesis module is used for sending the first adjusted current application window and the second adjusted associated interface to the window manager, and calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method for adjusting an application window according to any one of the above descriptions.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method for adjusting an application window according to any one of the above.
The method and the device for adjusting the application window provided by the embodiment of the invention send an instruction for adjusting the application window received by a window manager to an application end, the application end performs first adjustment on a window currently opened by the application end after receiving the instruction, obtains the adjusted current application window, performs second adjustment on an association interface according to the first adjustment of the current application window, obtains the adjusted association interface, the current application window and the association interface are in a synthetic relation, the first adjustment and the second adjustment are in a corresponding relation, and the current application window and the association interface can be in the same adjustment direction by performing the first adjustment and the second adjustment; and then sending the adjusted current application window and the adjusted associated interface to a window manager, and synthesizing the adjusted current application window and the adjusted associated interface by the window manager to obtain a synthesized application window, namely finishing the adjustment operation of the current application window and the associated interface, thereby realizing the function that the application window can be adjusted according to the self adjustment strategy or the system recommendation direction.
Drawings
In order to more clearly illustrate the technical solutions of the present disclosure or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart illustrating a method for adjusting an application window according to an embodiment of the present invention;
FIG. 2 is a diagram of a relationship style between a current application window and an associated interface according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of the Wayland interface protocol according to an embodiment of the present invention;
FIG. 4 is a diagram of a first size adjustment and a first rotational adjustment provided by an embodiment of the present invention;
FIG. 5 is a diagram of a first resizing provided by embodiments of the present invention;
FIG. 6 is a diagram of a first rotational adjustment provided by an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for adjusting an application window in a multi-subject interaction according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating an apparatus for adjusting an application window according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present disclosure, belong to the protection scope of the embodiments of the present disclosure.
In the embodiment of the present invention, the Linux includes various releases implemented on the basis of Linux kernel, such as Ubuntu, Debian, etc.
In the technology known by the inventor, the Linux OS with the GUI interface only implements configuration management of the screen output direction and does not support application level adjustment configuration, and neither of the major window management protocols (X11 and Wayland) on the Linux platform implements application adjustment management.
Referring to fig. 1, a flowchart of a method for adjusting an application window according to an embodiment of the present invention is shown, where the method includes:
and 110, receiving an adjusting instruction sent by the window manager for the current application window.
In this step, the window manager is the main graphic management module of the user in the system. A window manager is a program that controls the appearance, location, window hierarchy of windows and provides a way for users to manipulate these window programs. When the window manager starts to operate, the interaction between the server and the client is redirected to the window manager. Whenever a new window is to be displayed, the request is redirected to the window manager, which determines the initial position of the window and its window level. Common Window manager implementations, such as DWM Window manager in Windows, X Window in Linux, Wayland, etc.
The adjusting instruction can be used for adjusting the size of the current application window, including adjusting the length or width of the window; it is also understood that the rotation adjustment of the current application window may include horizontal, vertical, horizontal flipping, vertical flipping, etc.
And 120, performing first adjustment on the current application window to obtain the current application window after the first adjustment.
In this step, the current application window refers to the topmost window (window) in the window stack, which is displayed on the top, and covers other windows without any other window blocking it.
And 130, performing second adjustment on the association interface according to the first adjustment of the current application window to obtain a second adjusted association interface, wherein the current application window and the association interface are in a composite relationship, and the first adjustment and the second adjustment are in a corresponding relationship.
In this step, the associated interface refers to a status bar or a system popup window which can be used to display the current operating status, information prompts, etc., and may include a status bar, a soft keyboard, a popup box, etc. Such as: for applications such as browsers, there are many buttons on the status bar. The buttons are used for displaying information of the currently accessed Web page, including information such as an IP address of the current page, the access condition of the page, the downloading progress, a historical browsing record and the like.
Correspondingly, the current application window and the associated interface are in a composite relationship.
The so-called composite relationship may, for example, be a stitching relationship, where the stitches may be adjacent or spaced. And particularly to fig. 2, a relational style sheet of a current application window and an associated interface is shown. The figures 210 and 230 represent the association interface and 220 the current application window.
Although not specifically described, the so-called composition relationship may also be an overlay relationship, e.g., the association interface may be dragged over a UI local location of the application window; it may also be a local overlay relationship, e.g. the association interface may be dragged to locally coincide with an edge of the application window UI.
The first adjustment and the second adjustment are in a corresponding relationship, that is, when the first adjustment is the size adjustment, the corresponding second adjustment is also the size adjustment; and/or, when the first adjustment is a lateral adjustment, the corresponding second adjustment is also a lateral adjustment.
140, sending the first adjusted current application window and the second adjusted associated interface to the window manager, and calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window.
In this step, the synthesis may be seamless splicing, seam splicing, overlapping coverage, partial overlapping, and the like. The method can also be used for synthesizing a single association interface and the current application window or synthesizing a plurality of association interfaces and the current application window, and can also set a plurality of synthesis styles, such as longitudinal, transverse overturning or longitudinal overturning, of the association interface and the current application window. The synthesis style is not specifically limited in the embodiment of the present invention, and other specific styles may be set by those skilled in the art according to actual needs or application scenarios.
The embodiment of the present invention exemplifies the composition in one of the manners, and the synthesized application window is as shown in fig. 2, that is, the association interface 210 is spliced with the upper half portion of the current application window 220, and the lower half portion of the current application window 220 is spliced with the association interface 230. The current application window and the associated interface are synthesized, and in fig. 2, the upper and lower associated interfaces are spliced and synthesized with the current application window, it is to be understood that fig. 2 only represents one synthesis style in the embodiment of the present invention.
The method for adjusting the application window provided by the embodiment of the invention comprises the steps of sending an instruction for adjusting the application window received by a window manager to an application end, carrying out first adjustment on a window currently opened by the application end after the application end receives the instruction, obtaining an adjusted current application window, carrying out second adjustment on an association interface according to the first adjustment of the current application window, obtaining an adjusted association interface, wherein the current application window and the association interface are in a combined relation, the first adjustment and the second adjustment are in a corresponding relation, and the current application window and the association interface can be in the same adjustment direction by carrying out the first adjustment and the second adjustment; and then sending the adjusted current application window and the adjusted associated interface to a window manager, and synthesizing the adjusted current application window and the adjusted associated interface by the window manager to obtain a synthesized application window, namely finishing the adjustment operation of the current application window and the associated interface, thereby realizing the function that the application window can be adjusted according to the self adjustment strategy or the system recommendation direction.
Based on any of the above embodiments, the method for adjusting an application window provided by the embodiment of the present invention further includes:
and the synthesized application window is adapted to the display side through the window manager and is displayed on the display side.
In this step, the display side refers to an input/output device with a display function, and may also be understood as a display tool that displays an image or a picture on a screen through a specific transmission device and reflects the image or the picture to human eyes, and may be LCD, OLED, etc., or may be a display projected by an LED projector, a laser projector, etc., or an imaging display such as AR VR.
Specifically, the image or screen displayed on the display side is horizontal, and the purpose of adapting the combined application window to the display side is to make the direction of the combined application window coincide with the direction displayed on the display side, i.e., both are horizontal. For example, if the direction of the application window after the composition is vertical and the direction to be displayed is supposed to be horizontal, the application window after the composition is rotated to the horizontal direction, the direction of the application window after the composition is consistent with the direction displayed on the display side, and both the application window after the composition and the display side are horizontal.
According to any of the above embodiments, the method includes the following steps S111-S112 before step 110:
and step 111, generating a window description and a protocol interface corresponding to the application window.
In this step, the window description and the protocol interface may be generated based on the newly added extension protocol. Taking the Wayland under the Linux system as an example, the newly added extension protocol can be based on the Wayland interface protocol, the window description can be represented by wl _ surface, the protocol interface can be represented by wl _ interface, and the window manager and the application end integrate the new extension protocol.
In particular, Wayland is a Protocol (Protocol), just like the current X Window Protocol, X11, which defines how to communicate with the kernel and the Client, and the specific strategy is still given to the developer. Wayland is still a Unix program that implements "provide mechanisms, not policies". The schematic structure of the Wayland interface protocol is shown in fig. 3.
In the schematic diagram of the structure of the Wayland interface protocol:
indicating that the Kernel (KMS evdev Kernel) acquires an event and sends the received event to the synthesizer (Wayland composer).
The compositor can know which window should receive the message after receiving the message, because the compositor is a master control center and masters the hierarchical relation and animation effect of the window, the compositor can know to which the event should be sent.
The rendering, which represents the event, occurs at the Client (Walland Client), which sends a request to the compositor to indicate the updated region.
And fourthly, re-synthesizing the updating area, displaying the desktop and presenting the desktop to the user.
And step 112, binding the window description of the application window and the protocol interface, and reporting an adjustment direction list supported by the application window to the window manager through the protocol interface so that the window manager stores the adjustment direction list and calls the application window of the application end as the current application window.
In this step, the adjustment direction list refers to an adjustment direction list that an application window is added in the wayland interface protocol and can request reporting of self support, and generally is one or more of initial direction (Primary), longitudinal (portal), lateral (Landscape), and longitudinal rollover (portal invoked) lateral rollover (Landscape altered).
It can be understood that the application end may also dynamically modify the adjustment direction list supported by the application window during the running process, for example, the adjustment direction list reported by the application window at first is horizontal, and the adjustment direction list may be modified into a longitudinal direction list during the running process; a default rotation policy (e.g., following the device screen direction) may also be provided for some applications that do not support new application windows or windows that do not support reporting of adjustment direction lists.
Based on any of the above embodiments, in step 120, performing a first adjustment on the current application window specifically includes:
a first resizing is performed on a current application window.
In this step, as shown in fig. 4, a diagram before the first resizing is shown, and fig. 5 shows a diagram after the first resizing. As can be seen from the figure, the first resizing is a resizing that is performed on the size of the current application window and associated interface, but not on the orientation of the content in the current application window and associated interface.
Specifically, for example, the size of the current application window is 1920 × 1080, and after the first size adjustment of the application window is completed, the size of the current application window may be different sizes such as 1080 × 1920, 1680 × 1050, 1024 × 768, and the like.
In step 130, performing a second adjustment on the association interface according to the first adjustment of the current application window, which specifically includes:
and performing corresponding second size adjustment on the associated interface according to the first size adjustment of the current application window.
In this step, the first size adjustment and the second size adjustment are in a corresponding relationship. For example, the initial size of the current application window is 1920 × 1080, after the first size adjustment is performed on the current application window, the size of the current application window is 1080 × 1920, the initial size of the corresponding association interface is 1920 × 100, and after the second size adjustment is performed on the association interface, the size of the association interface is 1080 × 100.
Based on any of the above embodiments, in step 120, performing the first adjustment on the current application window, further includes: a first rotational adjustment is made to the current application window.
In this step, fig. 4 is referred to, and a diagram before the first rotation adjustment is also referred to, and fig. 6 is referred to a diagram after the first rotation adjustment. As can be seen from the figure, the first rotation adjustment is a rotation adjustment for the orientation of the content in the current application window, while no adjustment is made for the size in the current application window.
In step 130, performing a second adjustment on the associated interface according to the first adjustment of the current application window, further including:
and performing corresponding second rotation adjustment on the associated interface according to the first rotation adjustment of the current application window.
In this step, the first rotation adjustment and the second rotation adjustment are in a corresponding relationship. Therefore, the second rotation adjustment is a rotation adjustment for the direction of the content in the association interface, and is not adjusted for the association interface size.
For example, as shown in fig. 6, an initial direction of content in the current application window is a horizontal direction, after the direction of the content in the current application window is subjected to the first rotation adjustment, the direction of the content in the current application window is a vertical inversion, the initial direction of the content in the corresponding associated interface is also the horizontal direction, and after the direction of the content in the associated interface is subjected to the second rotation adjustment, the direction of the content in the associated interface is also the vertical inversion.
According to any of the above embodiments, the window manager comprises a canvas area corresponding to the display area of the display side. Wherein, the coordinate system, the width and the height of the canvas area correspond to the coordinate system, the width and the height of the display area on the display side.
In step 140, the invoking window manager synthesizes the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window, including the following steps S141 to S142:
and step S141, synthesizing the first adjusted current application window and the second adjusted associated interface by using the calling window manager to obtain an initial application window.
In this step, the initial application window refers to a window that is not processed any more after the current application window and the associated interface are combined. Taking fig. 6 as an example for illustration, the left side of fig. 6 shows a window manager, the window manager receives the current application window and the associated interface after the application end is adjusted, and the window manager synthesizes the current application window and the associated interface after the adjustment to obtain the synthesis style in fig. 6.
And step S142, calling the window manager to perform corresponding rotation operation on the initial application window according to the size of the initial application window and the size of the canvas area to obtain the synthesized application window.
In this step, the synthesized window, i.e., the initial application window, is processed such that the size of the initial application window is consistent with the size of the canvas area.
Specifically, a first size adjustment of the current application window, a second size adjustment corresponding to the association interface, a first rotation adjustment of the current application window, and a second rotation adjustment corresponding to the association interface are performed, which is described as an example.
In a specific embodiment, when a first size of a current application window is adjusted and a second size of an associated interface is adjusted correspondingly, the application window and the associated interface are only adjusted in size by the application terminal, directions of contents in the application window and the associated interface are not adjusted, and in order to make the current application window and the associated interface after the size adjustment consistent with the size of a canvas area, a window manager synthesizes the current application window and the associated interface to generate an initial application window, and then rotates the initial application window according to the size corresponding relationship between the initial application window and the canvas area to obtain the synthesized application window.
In another specific embodiment, when the first rotation adjustment of the current application window and the corresponding second rotation adjustment of the associated interface are performed, the application rotates the direction of the content in the current application window and the associated interface, and does not perform rotation adjustment on the size of the current application window and the associated interface. In order to ensure that the sizes of the current application window and the associated interface after the direction rotation of the content are consistent with the size of the canvas area, the window manager does not perform rotation adjustment after synthesizing the current application window and the associated interface and generating the initial application window.
Based on any embodiment above, after obtaining the synthesized application window, the method further includes:
and calling a window manager to perform corresponding direction adjustment on the coordinate system of the input equipment in the display area according to the synthesized application window.
In this step, the input device may be a mouse or a touch pad.
Specifically, after the current application window completes the first rotation adjustment and the associated interface correspondingly completes the second rotation adjustment, in order to make the directions of the contents in the entire application window consistent, the corresponding direction adjustment is performed on the coordinate system of the input device in the display area in the application window, so that the coordinate system of the input device in the display area is kept consistent with the coordinate system of the synthesized application window.
Further, the implementation of the present disclosure is further explained in an additional way: referring to fig. 7 in particular, a schematic flowchart illustrating a method for adjusting an application window through multi-agent interaction according to an embodiment of the present invention is further described in an additional way from three perspectives, namely, a window manager, an application end, and an association interface.
A window manager: and receiving an adjusting instruction for the current application window, wherein the adjusting instruction is a request for changing a list supported by the current application window or adjusting the direction of equipment, and sending the adjusting instruction to an application end.
An application end: receiving an adjusting instruction sent by a window manager, carrying out first adjustment on a current application window, carrying out re-layout on the application end according to the current application window after the first adjustment is completed, sending the current application window after the first adjustment to the window manager, and displaying the current application window by the window manager.
And (3) associating an interface: and receiving an adjusting instruction sent by the window manager, correspondingly carrying out second adjustment on the associated interface according to the first adjustment of the current application window, carrying out re-layout on the associated interface according to the associated interface after the second adjustment is finished, sending the associated interface after the second adjustment to the window manager, and displaying by the window manager.
The window manager receives the current application window after the first adjustment and the associated interface after the second adjustment, because the first adjustment and the second adjustment are in a corresponding relationship, the directions of the current application window after the first adjustment and the associated interface after the second adjustment are consistent at the moment, and the coordinate system (a mouse or a touch pad and the like) of the input equipment is correspondingly adjusted according to the current application window after the first adjustment and the associated interface after the second adjustment, so that the directions of all the contents in the whole application window are kept consistent.
Based on any of the above embodiments, referring to fig. 8, an apparatus for adjusting an application window provided in an embodiment of the present invention includes: a sending module 810, a first adjusting module 820, a second adjusting module 830, and a synthesizing module 840. The sending module 810 is configured to receive an adjustment instruction for a current application window through the window manager, and send the adjustment instruction to the application end; a first adjusting module 820, configured to perform a first adjustment on a current application window through an application end, and obtain a first adjusted current application window; a second adjusting module 830, configured to perform a second adjustment on the association interface according to a first adjustment of the current application window through the application terminal, and obtain a second adjusted association interface, where the current application window and the association interface are in a composite relationship, and the first adjustment and the second adjustment are in a corresponding relationship; the synthesizing module 840 is configured to send the first adjusted current application window and the second adjusted associated interface to the window manager, and synthesize the first adjusted current application window and the second adjusted associated interface through the window manager to obtain a synthesized application window.
The device for adjusting the application window provided by the embodiment of the invention sends an instruction for adjusting the application window received by a window manager to an application end, the application end performs first adjustment on a window currently opened by the application end after receiving the instruction, obtains the adjusted current application window, performs second adjustment on an association interface according to the first adjustment of the current application window, obtains the adjusted association interface, the current application window and the association interface are in a combined relationship, the first adjustment and the second adjustment are in a corresponding relationship, and the current application window and the association interface can be in the same adjustment direction by performing the first adjustment and the second adjustment; and then sending the adjusted current application window and the adjusted associated interface to a window manager, and synthesizing the adjusted current application window and the adjusted associated interface by the window manager to obtain a synthesized application window, namely finishing the adjustment operation of the current application window and the associated interface, thereby realizing the function that the application window can be adjusted according to the self adjustment strategy or the system recommendation direction.
Based on any embodiment above, the apparatus further comprises:
and the display module is used for matching the synthesized application window with the display side through the window manager and displaying on the display side.
Based on any of the above embodiments, before the sending module 810, the method includes:
generating a window description and a protocol interface corresponding to an application window through an application terminal;
and binding the window description of the application window with the protocol interface, and reporting an adjusting direction list supported by the application window to the window manager through the protocol interface so that the window manager stores the adjusting direction list.
Based on any of the above embodiments, the first adjusting module 820 is specifically configured to:
performing first size adjustment on a current application window through an application end;
performing second adjustment on the associated interface through the application terminal according to the first adjustment of the current application window, specifically including:
and performing corresponding second size adjustment on the associated interface through the application end according to the first size adjustment of the current application window.
Based on any of the above embodiments, the first adjusting module 820 is specifically configured to:
performing first rotation adjustment on a current application window through an application end;
performing second adjustment on the associated interface through the application terminal according to the first adjustment of the current application window, specifically including:
and performing corresponding second rotation adjustment on the associated interface through the application end according to the first rotation adjustment of the current application window.
Based on any of the embodiments, the synthesis module 840 is specifically configured to:
the window manager includes a canvas area corresponding to a display area of the display side;
synthesizing the first adjusted current application window and the second adjusted associated interface through a window manager to obtain an initial application window;
and performing corresponding rotation operation on the initial application window according to the size of the initial application window and the size of the canvas area to obtain the synthesized application window.
According to any of the above embodiments, after the synthesizing module 840, the apparatus further includes:
and the adjusting module is used for carrying out corresponding direction adjustment on the coordinate system of the input equipment in the display area through the window manager according to the synthesized application window.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 9, the electronic device may include: a processor (processor) 910, a communication Interface (Communications Interface) 920, a memory (memory) 930, and a communication bus 940, wherein the processor 910, the communication Interface 920, and the memory 930 communicate with each other via the communication bus 940. Processor 910 may invoke logical commands in memory 930 to perform the following method: receiving an adjusting instruction of a current application window sent by a window manager; performing first adjustment on the current application window to obtain the current application window after the first adjustment; performing second adjustment on the association interface according to the first adjustment of the current application window to obtain a second adjusted association interface, wherein the current application window and the association interface are in a synthetic relationship, and the first adjustment and the second adjustment are in a corresponding relationship; and sending the first adjusted current application window and the second adjusted associated interface to the window manager, and calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window.
In addition, the logic commands in the memory 930 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic commands are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of commands for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: receiving an adjusting instruction of a current application window sent by a window manager; performing first adjustment on the current application window to obtain the current application window after the first adjustment; performing second adjustment on the association interface according to the first adjustment of the current application window to obtain a second adjusted association interface, wherein the current application window and the association interface are in a synthetic relationship, and the first adjustment and the second adjustment are in a corresponding relationship; and sending the first adjusted current application window and the second adjusted associated interface to the window manager, and calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes commands for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for adjusting an application window, applied to an application side, the method comprising:
receiving an adjusting instruction of a current application window sent by a window manager;
performing first adjustment on the current application window to obtain the current application window after the first adjustment;
performing second adjustment on the association interface according to the first adjustment of the current application window to obtain a second adjusted association interface, wherein the current application window and the association interface are in a synthetic relationship, and the first adjustment and the second adjustment are in a corresponding relationship;
sending the first adjusted current application window and the second adjusted associated interface to the window manager, and calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window;
before receiving an instruction for adjusting a current application window sent by a window manager, the method includes:
generating a window description and a protocol interface corresponding to the application window;
and binding the window description of the application window with a protocol interface, and reporting an adjustment direction list supported by the application window to the window manager through the protocol interface so that the window manager stores the adjustment direction list.
2. The method for adjusting an application window according to claim 1, further comprising:
and matching the synthesized application window with a display side through the window manager, and displaying on the display side.
3. The method for adjusting an application window according to claim 1, wherein the first adjustment of the current application window specifically includes: performing first size adjustment on a current application window;
performing second adjustment on the associated interface according to the first adjustment of the current application window, specifically including: and performing corresponding second size adjustment on the associated interface according to the first size adjustment of the current application window.
4. The method for adjusting an application window according to claim 1, wherein the first adjustment of the current application window specifically includes: performing first rotation adjustment on a current application window;
performing second adjustment on the associated interface according to the first adjustment of the current application window, specifically including: and performing corresponding second rotation adjustment on the associated interface according to the first rotation adjustment of the current application window.
5. The method of adjusting an application window according to claim 2, wherein the window manager includes a canvas area corresponding to a display area of the display side;
the invoking the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window includes:
calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain an initial application window;
and calling the window manager to perform corresponding rotation operation on the initial application window according to the size of the initial application window and the size of the canvas area to obtain the synthesized application window.
6. The method for adjusting an application window according to claim 5, wherein after the obtaining the synthesized application window, the method further comprises:
and calling the window manager to perform corresponding direction adjustment on the coordinate system of the input equipment in the display area according to the synthesized application window.
7. An apparatus for adjusting an application window, disposed at an application end, the apparatus comprising:
the receiving module is used for receiving an adjusting instruction of the current application window sent by the window manager;
the first adjusting module is used for carrying out first adjustment on the current application window to obtain the current application window after the first adjustment;
a second adjusting module, configured to perform a second adjustment on the association interface according to the first adjustment of the current application window, and obtain a second adjusted association interface, where the current application window and the association interface are in a composite relationship, and the first adjustment and the second adjustment are in a corresponding relationship;
the synthesis module is used for sending the first adjusted current application window and the second adjusted associated interface to the window manager, and calling the window manager to synthesize the first adjusted current application window and the second adjusted associated interface to obtain a synthesized application window;
wherein, before the receiving module, the method comprises:
the generating module is used for generating window description and a protocol interface corresponding to the application window;
and the binding module is used for binding the window description of the application window and a protocol interface, and reporting an adjustment direction list supported by the application window to the window manager through the protocol interface so that the window manager stores the adjustment direction list.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the method of adjusting an application window according to any of claims 1 to 6.
9. A non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of adjusting an application window according to any one of claims 1 to 6.
CN202111036072.8A 2021-09-06 2021-09-06 Method and device for adjusting application window Active CN113467666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111036072.8A CN113467666B (en) 2021-09-06 2021-09-06 Method and device for adjusting application window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111036072.8A CN113467666B (en) 2021-09-06 2021-09-06 Method and device for adjusting application window

Publications (2)

Publication Number Publication Date
CN113467666A CN113467666A (en) 2021-10-01
CN113467666B true CN113467666B (en) 2021-11-16

Family

ID=77867513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111036072.8A Active CN113467666B (en) 2021-09-06 2021-09-06 Method and device for adjusting application window

Country Status (1)

Country Link
CN (1) CN113467666B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918366B (en) * 2021-12-14 2022-04-19 北京鲸鲮信息系统技术有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN114610424A (en) * 2022-02-11 2022-06-10 阿里巴巴(中国)有限公司 Data processing method, window display method of cloud application and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902789A (en) * 2012-09-29 2013-01-30 北京奇虎科技有限公司 Display control equipment and method for changing contents displayed in browser window
EP3367225A1 (en) * 2017-02-28 2018-08-29 Samsung Electronics Co., Ltd. Electronic device and method for managing window
CN109117241A (en) * 2018-09-27 2019-01-01 Oppo广东移动通信有限公司 A kind of display direction control method, system and mobile terminal
CN112527219A (en) * 2019-09-17 2021-03-19 中兴通讯股份有限公司 Graphics synthesis method, device and system based on WAYLAND protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902789A (en) * 2012-09-29 2013-01-30 北京奇虎科技有限公司 Display control equipment and method for changing contents displayed in browser window
EP3367225A1 (en) * 2017-02-28 2018-08-29 Samsung Electronics Co., Ltd. Electronic device and method for managing window
CN109117241A (en) * 2018-09-27 2019-01-01 Oppo广东移动通信有限公司 A kind of display direction control method, system and mobile terminal
CN112527219A (en) * 2019-09-17 2021-03-19 中兴通讯股份有限公司 Graphics synthesis method, device and system based on WAYLAND protocol

Also Published As

Publication number Publication date
CN113467666A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN113467666B (en) Method and device for adjusting application window
CN112269604B (en) Window interaction method and device for compatibly running Android application on Linux
US10732922B2 (en) Manipulating shared screen content
CN102027450B (en) Methods and systems for using external display devices with a mobile computing device
CN106155454B (en) Interface display method and device and electronic equipment
EP0439087B1 (en) Method for resizing and moving computer display windows
EP3506073B1 (en) Information input method and apparatus
JP5374873B2 (en) Information processing apparatus, information processing system, computer program, and information processing method
WO2015094824A1 (en) Invocation control over keyboard user interface
CN114185508B (en) Method for left-right screen splitting on Linux compatible android system
CN108228121B (en) Browser split screen method and device and mobile terminal
JP2017111719A (en) Video processing device, video processing method and video processing program
CN113778583A (en) Method, device, equipment and medium for publishing local application of cloud desktop
WO2023065740A1 (en) Window display method and apparatus, device, and storage medium
CN114168240A (en) Window display method, device, equipment and storage medium
US20220397985A1 (en) Transparent Application Window
CN113918056B (en) Method and device for adjusting application window
CN113918056A (en) Method and device for adjusting application window
JP6464767B2 (en) Image processing apparatus, content display control method and display control program in the same
CN113791856B (en) Method and device for long screen capture annotation
JP6954045B2 (en) Image processing system, user interface provision method, and computer program
JP2014178905A (en) Image display device, image display method, and program
US11907646B1 (en) HTML element based rendering supporting interactive objects
CN111158844B (en) Schedule display method and related equipment
US20230236702A1 (en) Transparent Application Overlay

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220406

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: 2005, floor 2, No. 39, West Street, Haidian District, Beijing 100082

Patentee before: Beijing jingling Information System Technology Co.,Ltd.

TR01 Transfer of patent right