xsecurelock 1.8.0
XSecureLock is an X11 screen lock utility.
Loading...
Searching...
No Matches
unmap_all.h
Go to the documentation of this file.
1/*
2Copyright 2018 Google Inc. All rights reserved.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#ifndef UNMAP_ALL_H
18#define UNMAP_ALL_H
19
20#include <X11/X.h> // for Window
21#include <X11/Xlib.h> // for Display
22
23typedef struct {
24 Display *display;
26
27 // The window list; None windows should be skipped when iterating.
28 Window *windows;
29 unsigned int n_windows;
32
43 Window root_window, const Window *ignored_windows,
44 unsigned int n_ignored_windows,
45 const char *my_res_class, const char *my_res_name,
46 int include_frame);
47
59 int (*just_unmapped_can_we_stop)(Window w, void *arg),
60 void *arg);
61
67
72
73#endif
Display * display
The X11 display.
Definition auth_x11.c:200
Definition unmap_all.h:23
unsigned int n_windows
Definition unmap_all.h:29
unsigned int first_unmapped_window
Definition unmap_all.h:30
Display * display
Definition unmap_all.h:24
Window root_window
Definition unmap_all.h:25
Window * windows
Definition unmap_all.h:28
int InitUnmapAllWindowsState(UnmapAllWindowsState *state, Display *display, Window root_window, const Window *ignored_windows, unsigned int n_ignored_windows, const char *my_res_class, const char *my_res_name, int include_frame)
Stores the list of all mapped application windows in the state.
Definition unmap_all.c:9
void ClearUnmapAllWindowsState(UnmapAllWindowsState *state)
Clears the UnmapAllWindowsState when done, and returns resources to X11.
Definition unmap_all.c:104
int UnmapAllWindows(UnmapAllWindowsState *state, int(*just_unmapped_can_we_stop)(Window w, void *arg), void *arg)
Unmaps all windows, and stores them in the state.
Definition unmap_all.c:71
void RemapAllWindows(UnmapAllWindowsState *state)
Remaps all windows from the state.
Definition unmap_all.c:94