CN115904589A - Application program window watermark processing method and device and electronic equipment - Google Patents

Application program window watermark processing method and device and electronic equipment Download PDF

Info

Publication number
CN115904589A
CN115904589A CN202211477935.XA CN202211477935A CN115904589A CN 115904589 A CN115904589 A CN 115904589A CN 202211477935 A CN202211477935 A CN 202211477935A CN 115904589 A CN115904589 A CN 115904589A
Authority
CN
China
Prior art keywords
window
watermark
target
event
application program
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.)
Pending
Application number
CN202211477935.XA
Other languages
Chinese (zh)
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 Antiy Network Technology Co Ltd
Original Assignee
Beijing Antiy Network 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 Antiy Network Technology Co Ltd filed Critical Beijing Antiy Network Technology Co Ltd
Priority to CN202211477935.XA priority Critical patent/CN115904589A/en
Publication of CN115904589A publication Critical patent/CN115904589A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The invention provides an application program window watermarking processing method, an application program window watermarking processing device and electronic equipment, wherein the method comprises the following steps: when a target application program is monitored to create a new window needing watermark masking, generating a watermark of the window, and establishing a binding relationship between the window and the watermark; and monitoring window change events of the windows with the binding relationship, and carrying out corresponding change processing on the target watermark with the binding relationship established with the target window according to the window change events when the target window with the window change events is monitored. According to the scheme, the watermark shade of the non-top-setting window can be realized.

Description

Application program window watermark processing method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for processing application program window watermarks and electronic equipment.
Background
The application program window watermarking refers to the step of performing watermark masking on a window of an application program, and is used for effectively tracing the screen capture of window data and the shooting of the window data, so that the advance management and control and the afterward tracing of security events are realized. At present, a method for performing watermark masking on an application window is to monitor a window top event by using a hook function, and perform watermark masking on a top window. However, when the application opens multiple windows, the watermark masking is only performed on the set top window, and effective protection of the data of the non-set top window cannot be achieved.
Disclosure of Invention
The embodiment of the invention provides an application program window watermark processing method, an application program window watermark processing device and electronic equipment, which can realize non-top window watermark masking.
In a first aspect, an embodiment of the present invention provides an application window watermarking method, including:
when a target application program is monitored to create a new window needing watermark masking, generating a watermark of the window, and establishing a binding relationship between the window and the watermark;
and monitoring a window change event for the window with the binding relationship, and carrying out corresponding change processing on the target watermark with the binding relationship with the target window according to the window change event when the target window with the window change event is monitored.
In one possible implementation manner, the method further includes:
determining at least one process started by the target application program;
and monitoring whether each process started by the target application program creates a new window or not.
In one possible implementation manner, the method further includes:
and after monitoring that a new window is created in the process started by the target application program, determining whether the new window meets window characteristics preset for the target application program, and if so, determining the new window as the new window needing watermark masking.
In one possible implementation, the window change event includes: a window set-top event, a window adjust event, and a window exit event.
In a possible implementation manner, the monitoring of the window change event for the window with the binding relationship includes:
and monitoring whether the input and output equipment executes the window top setting event on the window with the binding relationship.
In a possible implementation manner, the monitoring of the window change event for the window with the binding relationship includes:
registering a desktop event to an X service, and monitoring the window adjustment event and the window exit event for the window with the binding relation based on the desktop event.
In one possible implementation, the desktop event includes: at least one of a RepatentNotification, a MapNotification, an UnmapNotification, and a ConfiguereNotification;
the RepeantNotification is used for notifying a parent window change event; the MapNotify is used for notifying a new window creation event; the UnmapNotify is used for notifying a window exit event; the ConfigureNotify is used to notify a window adjustment event.
In a possible implementation manner, the correspondingly changing the target watermark that has a binding relationship with the target window according to the occurring window change event includes:
when the window changing event is the window top setting event, refreshing the target watermark which is in binding relation with the target window so as to enable the target watermark to be set top along with the target window;
when the generated window changing event is the window adjusting event, refreshing the target watermark which is in binding relation with the target window so as to adjust the target watermark along with the adjusting content of the target window; the adjusting content comprises: window size and/or window position;
and when the window change event is the window exit event, closing the target watermark which is in binding relation with the target window.
In a second aspect, an embodiment of the present invention further provides an apparatus for watermarking an application window, including:
the watermark generating unit is used for generating the watermark of the window and establishing the binding relationship between the window and the watermark when the target application program is monitored to establish a new window needing watermark masking;
and the watermark processing unit is used for monitoring the window change event of the window with the binding relationship, and carrying out corresponding change processing on the target watermark with the binding relationship with the target window according to the window change event when the target window with the window change event is monitored.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the processor implements the method described in any embodiment of this specification.
The embodiment of the invention provides an application program window watermark processing method, an application program window watermark processing device and electronic equipment, wherein a new window is created for an application program to be monitored, when a target application program is monitored to create the new window needing watermark masking, a watermark is generated for the window, and the binding relationship between the window and the watermark is established, namely, the watermark is bound with the window no matter whether the window is a top setting window or not; in addition, by monitoring the window change event, when the target window with the window change event is monitored, the target watermark bound with the target window is correspondingly changed according to the window change event, so that the watermark can follow the window. Therefore, in the scheme, each window corresponds to the watermark bound with the window, even if other windows are set on the top, the current window is changed into a non-set-top window, and the watermark bound with the non-set-top window follows the window, so that the scheme can realize watermark shielding of the non-set-top window.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an application window watermarking method according to an embodiment of the present invention;
fig. 2 is a hardware architecture diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a structural diagram of an application window watermarking apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of another application window watermarking apparatus 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 invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As described above, in the prior art, a window event is used as a starting point, a hook function is used to monitor a window top event, and after the window top event is monitored, a watermark window is masked on a top window according to window information by acquiring the window information. However, when the application opens multiple windows, there may be a possibility that part of the content of the non-top window is displayed on the screen, and the part of the content displayed on the screen may be leaked due to the absence of the watermark mask on the non-top window.
Considering that some application programs open windows may have data security problems, for example, wps; therefore, the inventive concept of the present invention resides in: the application program is taken as a starting point, the window which is created by the application program and needs to be subjected to watermark masking generates the watermark, the window is bound with the watermark, and whether the window is a top-setting window or not, the window is provided with the watermark masking.
Specific implementations of the above concepts are described below.
Referring to fig. 1, an embodiment of the present invention provides an application window watermarking method, where the method includes:
step 100, when a target application program is monitored to create a new window needing watermark masking, generating a watermark of the window, and establishing a binding relationship between the window and the watermark;
102, monitoring a window change event for the window with the binding relationship, and carrying out corresponding change processing on a target watermark with the binding relationship established with the target window according to the window change event when the target window with the window change event is monitored.
In the embodiment of the invention, a new window is created for an application program to be monitored, when a target application program is monitored to create a new window needing watermark masking, a watermark is generated for the window, and the binding relationship between the window and the watermark is established, namely, the watermark is bound with the window no matter whether the window is a set-top window or not; in addition, by monitoring the window change event, when the target window with the window change event is monitored, the target watermark bound with the target window is correspondingly changed according to the window change event, so that the window can be followed by the watermark. Therefore, according to the scheme, each window corresponds to the watermark bound with the window, even if other windows are set on the top, the current window is changed into a non-set-top window, and the watermark bound with the non-set-top window follows the window, so that the watermark shielding of the non-set-top window can be realized.
The manner in which the various steps shown in fig. 1 are performed is described below.
First, in step 100, whenever it is monitored that a new window needing watermark masking is created by a target application, a watermark of the window is generated, and a binding relationship between the window and the watermark is established.
The execution main body of the embodiment of the invention can be a client, and executes the watermark mask for the window started by the application program on the client.
The watermarking mask can be executed for all application programs on the client, and can also be executed for the appointed application program according to the requirement. Specifically, the application program required to perform watermark masking may be predetermined, and then the corresponding watermark policy may be configured for the application program. The watermarking strategy may include, but is not limited to: watermark characters, watermark pictures, watermark density, watermark angle, transparency and the like.
Taking an application program as a starting point, in order to ensure that a watermark can be generated for a new window which needs to be subjected to watermark masking and is created for the application program, the new window which is created for the application program needs to be monitored. Specifically, at least one process started by the target application program can be determined; and then monitoring whether each process started by the target application program creates a new window or not.
After the application program directly starts a process, the process may also start other processes, that is, the process directly started by the application program is a parent process, the other processes started by the parent process are child processes, and the child processes may also create a new window that needs to be subjected to watermark masking, so that the child processes also need to be used as monitored objects. In the embodiment of the invention, the parent-child relationship among the processes can be established, and the process directly started by the application program and other processes having parent-child relationship with the directly started process are determined as the process started by the application program. Therefore, whether new windows are created for all processes started by the application program or not can be monitored in a full-coverage mode, the monitoring coverage range is improved, the watermark coverage rate is improved, and the protection of the full windows is achieved more efficiently and more thoroughly.
In order to monitor the process event, the embodiment of the present invention may use a connector mechanism to monitor whether a new window is created for each process, so as to ensure accuracy and timeliness of the monitoring result.
In the embodiment of the invention, when a new window is created in a process of monitoring the starting of a target application program, the new window can be directly determined as the new window needing watermark masking, and whether the new window is the new window needing watermark masking can be further determined according to requirements.
When it is further determined whether the new window is a new window that needs to be watermarked as required, specifically, the method may include: and after monitoring that a new window is created in the process started by the target application program, determining whether the new window meets window characteristics preset for the target application program, and if so, determining the new window as the new window needing watermark masking.
The window characteristics met by the new window needing watermark masking are that the window is used for editing data content. For example, the application program is wps, and when the created new window is a window of a new page, the window is used for editing data content and meets the window characteristics met by the new window needing to be subjected to watermark masking; when the application program continues to create a sub-window in the created new page window as a font window, the font window is used for setting the font format of the data content in the new page, so that the font window does not meet the window characteristics met by the new window needing to be subjected to watermark masking.
It should be noted that the window characteristics set for the target application program may be set based on requirements, and it is not necessary to perform watermark masking on all windows, so as to prevent confusion of watermark masking.
In the embodiment of the invention, when a target application program is monitored to create a new window needing watermark masking, the watermark of the window is generated, and the binding relationship between the window and the watermark is established. That is to say, the target application program creates a window 1, a window 2 and a window 3 which need to be subjected to watermark masking in sequence, and generates a watermark 1 for the window 1, a watermark 2 for the window 2 and a watermark 3 for the window 3, and the established binding relationship is as follows: window 1-watermark 1, window 2-watermark 2, window 3-watermark 3. It can be understood that if the window 1, the window 2 and the window 3 are three windows which are successively created, when the window 2 is created, the window 2 is a top-setting window, the window 1 is a non-top-setting window, when the window 3 is created, the window 3 is a top-setting window, and the window 1 and the window 2 are both non-top-setting windows; and because the non-top window has the watermark bound with the non-top window, the non-top window also has the watermark, and even if part of the contents of the windows 1 and 2 are displayed on the screen, the part of the contents displayed on the screen still has the corresponding watermark for window protection.
Further, when the watermark of the window is generated, a window body is subjected to title removal based on a Qt irregular window mechanism, a window transparent color and a window background color are set, the size of the window is obtained through a parent window ID, the watermark mask completely covers a specified window, the neglect of an input device (mouse and keyboard) event is realized through an X function XShapeCombineRectangles, the influence of the input device on the interface stacking of the watermark mask is solved, and the attachment of the watermark mask to the window is realized.
Then, aiming at the step 102, window change event monitoring is carried out on the window with the binding relationship, and when the window change event of the target window is determined, corresponding change processing is carried out on the target watermark with the binding relationship with the target window according to the window change event.
Because the windows with the binding relationship are all provided with the corresponding watermarks, the windows with the binding relationship are attention windows, and after the attention windows are changed, the corresponding watermarks also need to be changed, so that the following of the watermarks to the windows can ensure that the non-top windows can also be covered by the watermarks, and therefore, window change events of the non-top windows need to be monitored. In this embodiment of the present invention, the window changing event may include: a window set-top event, a window adjust event, and a window exit event. The window change events all affect the change of the watermark, so that the watermark which is in binding relation with the window can be accurately processed by monitoring the window change events.
For monitoring the window change event, in an embodiment of the present invention, a desktop event may be registered in an X service, and the window change event monitoring may be performed on a window having a binding relationship established based on the desktop event.
The X service refers to an X Window server and is used for displaying a graphical interface, processing keyboard and mouse events and transmitting the keyboard and mouse events to a corresponding application program, a management clipboard, a management display and the like. Registering the desktop event with the X service, monitoring the registered desktop event by using the X service, and notifying the application program for watermark processing in time after the X service monitors the registered desktop event.
In one embodiment of the present invention, in order to enable processing of application window watermarks, the desktop events registered with the X service may include: at least one of a RepeantNotification, a MapNotification, an UnmapNotification, and a ConfiguereNotification. Wherein:
the RearenNotification is used for notifying the parent window change event; the notification is sent to the watermarking application when the X service monitors for a parent window change to the window. For example, the notification is sent when the parent window of child window B is changed from parent window a to parent window C. At this time, it is necessary to determine whether the parent window C is a window that needs to be watermarked, if so, the watermark is masked for the parent window C, otherwise, the watermark is not masked for the parent window C.
And the MapNotify is used for notifying a new window creation event, and is the same as the Connector mechanism, and when the X service monitors that a new window is created, the notification is sent to the watermarking application. And the watermark processing application determines whether the created new window is a window which needs to be subjected to watermark masking, if so, the watermark masking is carried out on the new window, and otherwise, the watermark masking is not carried out on the new window.
UnmapNotify, is used for withdrawing the event and notifying to the window; this notification is sent to the watermarking application when the window exits from the X service, and the window disappears from the desktop view.
ConfigureNotify for notifying a window adjustment event. The notification is sent to the watermarking application when the X-service monitors for a window adjustment event. The adjustment may include an adjustment of the window size, an adjustment of the window position, etc.
Therefore, the window change event can be monitored based on the desktop events, so that the window change event of the window of interest can be obtained. Specifically, when receiving a notification of a window change event sent by a desktop event, first determining whether a window corresponding to the notification is a window having a binding relationship with a watermark, if so, determining that the window having the binding relationship has the window change event, otherwise, not performing processing.
In an embodiment of the present invention, when the window change event is a window set-top event, the window set-top event may also be executed by monitoring whether the input/output device is to a window having a binding relationship. Compared with the monitoring notification node after the window is changed based on the desktop event of the X service, the monitoring node of the input and output device is closer to the front, and the response speed of the watermarking processing is improved. Therefore, when the window set-top event is executed on the window with the binding relationship by monitoring whether the input and output equipment is used, the window adjustment event and the window exit event can be monitored by using the desktop event.
Further, when the target window is determined to have a window change event, the target watermark which is in a binding relationship with the target window is correspondingly changed according to the window change event.
Specifically, the method comprises the following steps:
when the window changing event is the window top setting event, refreshing the target watermark which is in binding relation with the target window so as to enable the target watermark to be set top along with the target window;
when the window change event is the window adjustment event, refreshing the target watermark which is in binding relation with the target window so as to adjust the target watermark along with the adjustment content of the target window; the adjusting content comprises: window size and/or window position;
and when the window change event is the window exit event, closing the target watermark which is in binding relation with the target window.
It is to be understood that the window in which the window adjustment event occurs is the top window. When the target window is set to the top and a window adjustment event occurs to the target window, window information of the set-top window can be obtained based on a DefaultBootWindow function, and the target watermark bound with the window information is refreshed based on the window information so that the target watermark is set to the top along with the target window, thereby achieving the effect of integrating the window and the watermark.
When a window exit event occurs, a notification of target window exit is obtained based on an unmapnnotify event registered by an X service, and the watermark of the target window is closed accordingly. And further deleting the binding relationship between the target window and the target watermark, so that the target window is not monitored as a focus window in the follow-up process.
As shown in fig. 2 and fig. 3, an embodiment of the present invention provides an application window watermarking apparatus. The apparatus embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. From a hardware aspect, as shown in fig. 2, for a hardware architecture diagram of an electronic device in which an application window watermark processing apparatus according to an embodiment of the present invention is located, in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 2, the electronic device in which the apparatus is located may also include other hardware, such as a forwarding chip responsible for processing a message. Taking a software implementation as an example, as shown in fig. 3, as a logically meaningful device, the device is formed by reading a corresponding computer program in a nonvolatile memory into a memory by a CPU of an electronic device where the device is located and running the computer program. The embodiment provides an application window watermarking processing device, which includes:
a watermark generating unit 301, configured to generate a watermark for a window when it is monitored that a new window that needs to be masked by a watermark is created by a target application, and establish a binding relationship between the window and the watermark;
the watermark processing unit 302 is configured to monitor a window change event for a window with a binding relationship established, and when a target window with the window change event is monitored, perform corresponding change processing on a target watermark with the binding relationship established with the target window according to the window change event.
In an embodiment of the present invention, referring to fig. 4, the apparatus for watermarking an application window may further include:
a process monitoring unit 303, configured to determine at least one process started by the target application; and monitoring whether each process started by the target application program creates a new window or not.
In an embodiment of the present invention, the process monitoring unit 303 is further configured to, after it is monitored that a new window is created by the process started by the target application program, determine whether the new window meets a window characteristic set in advance for the target application program, and if yes, determine the new window as a new window that needs to be subjected to watermark masking.
In one embodiment of the present invention, the window change event includes: a window set-top event, a window adjust event, and a window exit event.
In an embodiment of the present invention, when monitoring a window change event of a window with a binding relationship, the watermark processing unit 302 is specifically configured to: and monitoring whether the input and output equipment executes the window top setting event on the window with the binding relationship.
In an embodiment of the present invention, when monitoring a window change event of a window with a binding relationship, the watermark processing unit 302 is specifically configured to: registering a desktop event to an X service, and monitoring the window adjustment event and the window exit event for the window with the binding relation based on the desktop event.
In one embodiment of the present invention, the desktop events include: at least one of RepeantNotify, mapNotify, unmapNotify, and ConfiguereNotify;
the RepeantNotification is used for notifying a parent window change event; the MapNotify is used for notifying a new window creation event; the UnmapNotify is used for notifying a window exit event; the ConfigureNotify is used to notify a window adjustment event.
In an embodiment of the present invention, when the watermark processing unit 302 performs corresponding change processing on the target watermark that is in a binding relationship with the target window according to the occurring window change event, the method is specifically configured to: when the window changing event is the window top setting event, refreshing the target watermark which is in binding relation with the target window so as to enable the target watermark to be set top along with the target window; when the generated window changing event is the window adjusting event, refreshing the target watermark which is in binding relation with the target window so as to adjust the target watermark along with the adjusting content of the target window; the adjusting content comprises: window size and/or window position; and when the window change event is the window exit event, closing the target watermark which is in binding relation with the target window.
It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to an application window watermarking apparatus. In other embodiments of the invention, an application window watermarking apparatus may include more or fewer components than those shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the content of information interaction, execution process, and the like among the modules in the device is based on the same concept as the method embodiment of the present invention, specific content can be referred to the description in the method embodiment of the present invention, and is not described herein again.
The embodiment of the invention also provides electronic equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and when the processor executes the computer program, the watermarking method for the application program window in any embodiment of the invention is realized.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program causes the processor to execute an application window watermarking method in any embodiment of the present invention.
Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then a CPU or the like mounted on the expansion board or the expansion module is caused to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the embodiments described above.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230" does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
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 (10)

1. An application window watermarking method, comprising:
when a target application program is monitored to create a new window needing watermark masking, generating a watermark of the window, and establishing a binding relationship between the window and the watermark;
and monitoring window change events of the windows with the binding relationship, and carrying out corresponding change processing on the target watermark with the binding relationship established with the target window according to the window change events when the target window with the window change events is monitored.
2. The method of claim 1, further comprising:
determining at least one process started by the target application program;
and monitoring whether each process started by the target application program creates a new window.
3. The method of claim 2, further comprising:
and after monitoring that a new window is created in the process started by the target application program, determining whether the new window meets window characteristics preset for the target application program, and if so, determining the new window as the new window needing watermark masking.
4. The method of claim 1, wherein the window change event comprises: a window set-top event, a window adjust event, and a window exit event.
5. The method according to claim 4, wherein the monitoring of window change events for windows with established binding relationships comprises:
and monitoring whether the input and output equipment executes the window top setting event on the window with the binding relationship.
6. The method according to claim 4, wherein the monitoring of window change events for windows with established binding relationships comprises:
registering a desktop event to an X service, and monitoring the window adjustment event and the window exit event for the window with the binding relation based on the desktop event.
7. The method of claim 6, wherein the desktop event comprises: at least one of a RepatentNotification, a MapNotification, an UnmapNotification, and a ConfiguereNotification;
the RepeantNotification is used for notifying a parent window change event; the MapNotify is used for notifying a new window creation event; the UnmapNotify is used for notifying a window exit event; the ConfigureNotify is used to notify a window adjustment event.
8. The method according to any one of claims 4 to 7, wherein the performing, according to the window change event, a corresponding change process on the target watermark that has a binding relationship with the target window includes:
when the window changing event is the window top setting event, refreshing the target watermark which is in binding relation with the target window so as to enable the target watermark to be set top along with the target window;
when the window change event is the window adjustment event, refreshing the target watermark which is in binding relation with the target window so as to adjust the target watermark along with the adjustment content of the target window; the adjusting content comprises: window size and/or window position;
and when the window change event is the window exit event, closing the target watermark which is in binding relation with the target window.
9. An application window watermarking apparatus, comprising:
the watermark generating unit is used for generating the watermark of the window and establishing the binding relationship between the window and the watermark when the target application program is monitored to establish a new window needing watermark masking;
and the watermark processing unit is used for monitoring the window change event of the window with the binding relationship, and carrying out corresponding change processing on the target watermark with the binding relationship with the target window according to the window change event when the target window with the window change event is monitored.
10. An electronic device comprising a memory having stored therein a computer program and a processor that, when executing the computer program, implements the method of any of claims 1-8.
CN202211477935.XA 2022-11-23 2022-11-23 Application program window watermark processing method and device and electronic equipment Pending CN115904589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211477935.XA CN115904589A (en) 2022-11-23 2022-11-23 Application program window watermark processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211477935.XA CN115904589A (en) 2022-11-23 2022-11-23 Application program window watermark processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115904589A true CN115904589A (en) 2023-04-04

Family

ID=86484433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211477935.XA Pending CN115904589A (en) 2022-11-23 2022-11-23 Application program window watermark processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115904589A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116522299A (en) * 2023-06-26 2023-08-01 闪捷信息科技有限公司 Application program window watermark adding method and device based on Linux system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116522299A (en) * 2023-06-26 2023-08-01 闪捷信息科技有限公司 Application program window watermark adding method and device based on Linux system

Similar Documents

Publication Publication Date Title
US20200380200A1 (en) Information processing apparatus and method and non-transitory computer readable medium
US9104659B2 (en) Systems and methods for providing content aware document analysis and modification
US9886159B2 (en) Selecting portions of computer-accessible documents for post-selection processing
CN108563930A (en) A kind of method, apparatus, medium and the system of confidential document addition watermark
KR20220125282A (en) Remote access method
GB2457573A (en) Redaction of electronic documents based on detection of predefined expression patterns
CN114818618B (en) Document editing method and system based on signature encryption and medium
CN115904589A (en) Application program window watermark processing method and device and electronic equipment
CN112100041A (en) Processing method and device and electronic equipment
CN112257037B (en) Process watermarking method, system and electronic equipment
CN111259270A (en) Weather reminding method, equipment and computer readable medium
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
US20170228292A1 (en) Privacy Protection of Media Files For Automatic Cloud Backup Systems
CN113552989A (en) Screen recording method and device and electronic equipment
CN108021317B (en) Method and device for screen editing
CN107885807B (en) File saving method and device, intelligent tablet and storage medium
US10803093B2 (en) Systems and methods for enabling a file management label to persist on a data file
CN115688102A (en) Window processing method and device, processor and electronic equipment
CN113919997A (en) Watermark processing method and device, electronic equipment and storage medium
CN107749892B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN116820635A (en) Document block sharing method, device, system and storage medium
CN115374074A (en) Log processing method and device, storage medium and electronic equipment
CN107741992B (en) Network storage method and device for conference records, intelligent tablet and storage medium
CN112528184A (en) Sending method and device of rich text mail, computer equipment and storage medium
CN111353170A (en) File privacy information processing method and device, electronic equipment and storage medium

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