Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
110
Issues
110
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura
Commits
15838abf
Commit
15838abf
authored
Oct 24, 2014
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only enable reparent if we have X11
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
1acb8ceb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
main.c
main.c
+6
-0
zathura.c
zathura.c
+2
-0
zathura.h
zathura.h
+2
-0
No files found.
main.c
View file @
15838abf
...
...
@@ -47,10 +47,14 @@ main(int argc, char* argv[])
bool
print_version
=
false
;
int
page_number
=
ZATHURA_PAGE_NUMBER_UNSPECIFIED
;
int
synctex_pid
=
-
1
;
#ifdef GDK_WINDOWING_X11
Window
embed
=
0
;
#endif
GOptionEntry
entries
[]
=
{
#ifdef GDK_WINDOWING_X11
{
"reparent"
,
'e'
,
0
,
G_OPTION_ARG_INT
,
&
embed
,
_
(
"Reparents to window specified by xid"
),
"xid"
},
#endif
{
"config-dir"
,
'c'
,
0
,
G_OPTION_ARG_FILENAME
,
&
config_dir
,
_
(
"Path to the config directory"
),
"path"
},
{
"data-dir"
,
'd'
,
0
,
G_OPTION_ARG_FILENAME
,
&
data_dir
,
_
(
"Path to the data directory"
),
"path"
},
{
"cache-dir"
,
'\0'
,
0
,
G_OPTION_ARG_FILENAME
,
&
cache_dir
,
_
(
"Path to the cache directory"
),
"path"
},
...
...
@@ -163,7 +167,9 @@ main(int argc, char* argv[])
return
-
1
;
}
#ifdef GDK_WINDOWING_X11
zathura_set_xid
(
zathura
,
embed
);
#endif
zathura_set_config_dir
(
zathura
,
config_dir
);
zathura_set_data_dir
(
zathura
,
data_dir
);
zathura_set_cache_dir
(
zathura
,
cache_dir
);
...
...
zathura.c
View file @
15838abf
...
...
@@ -355,6 +355,7 @@ zathura_free(zathura_t* zathura)
g_free
(
zathura
);
}
#ifdef GDK_WINDOWING_X11
void
zathura_set_xid
(
zathura_t
*
zathura
,
Window
xid
)
{
...
...
@@ -362,6 +363,7 @@ zathura_set_xid(zathura_t* zathura, Window xid)
zathura
->
ui
.
session
->
gtk
.
embed
=
xid
;
}
#endif
void
zathura_set_config_dir
(
zathura_t
*
zathura
,
const
char
*
dir
)
...
...
zathura.h
View file @
15838abf
...
...
@@ -227,6 +227,7 @@ bool zathura_init(zathura_t* zathura);
*/
void
zathura_free
(
zathura_t
*
zathura
);
#ifdef GDK_WINDOWING_X11
/**
* Set parent window id
*
...
...
@@ -234,6 +235,7 @@ void zathura_free(zathura_t* zathura);
* @param xid The window id
*/
void
zathura_set_xid
(
zathura_t
*
zathura
,
Window
xid
);
#endif
/**
* Set the path to the configuration directory
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment