xsecurelock
1.8.0
XSecureLock is an X11 screen lock utility.
Toggle main menu visibility
Loading...
Searching...
No Matches
unmap_all.h
Go to the documentation of this file.
1
/*
2
Copyright 2018 Google Inc. All rights reserved.
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations 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
23
typedef
struct
{
24
Display *
display
;
25
Window
root_window
;
26
27
// The window list; None windows should be skipped when iterating.
28
Window *
windows
;
29
unsigned
int
n_windows
;
30
unsigned
int
first_unmapped_window
;
31
}
UnmapAllWindowsState
;
32
42
int
InitUnmapAllWindowsState
(
UnmapAllWindowsState
*state, Display *
display
,
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
58
int
UnmapAllWindows
(
UnmapAllWindowsState
*state,
59
int
(*just_unmapped_can_we_stop)(Window w,
void
*arg),
60
void
*arg);
61
66
void
RemapAllWindows
(
UnmapAllWindowsState
*state);
67
71
void
ClearUnmapAllWindowsState
(
UnmapAllWindowsState
*state);
72
73
#endif
display
Display * display
The X11 display.
Definition
auth_x11.c:200
UnmapAllWindowsState
Definition
unmap_all.h:23
UnmapAllWindowsState::n_windows
unsigned int n_windows
Definition
unmap_all.h:29
UnmapAllWindowsState::first_unmapped_window
unsigned int first_unmapped_window
Definition
unmap_all.h:30
UnmapAllWindowsState::display
Display * display
Definition
unmap_all.h:24
UnmapAllWindowsState::root_window
Window root_window
Definition
unmap_all.h:25
UnmapAllWindowsState::windows
Window * windows
Definition
unmap_all.h:28
InitUnmapAllWindowsState
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
ClearUnmapAllWindowsState
void ClearUnmapAllWindowsState(UnmapAllWindowsState *state)
Clears the UnmapAllWindowsState when done, and returns resources to X11.
Definition
unmap_all.c:104
UnmapAllWindows
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
RemapAllWindows
void RemapAllWindows(UnmapAllWindowsState *state)
Remaps all windows from the state.
Definition
unmap_all.c:94
Generated on
for xsecurelock by
1.17.0