Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
40e092fa
Commit
40e092fa
authored
Sep 24, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB window: set Window Manager hints
This is required to ever get the focus with some window managers.
parent
de5b2985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+14
-0
No files found.
modules/video_output/xcb/window.c
View file @
40e092fa
...
...
@@ -119,6 +119,19 @@ void set_ascii_prop (xcb_connection_t *conn, xcb_window_t window,
set_string
(
conn
,
window
,
atom
,
XA_STRING
,
value
);
}
static
inline
void
set_wm_hints
(
xcb_connection_t
*
conn
,
xcb_window_t
window
)
{
static
const
uint32_t
wm_hints
[
8
]
=
{
3
,
/* flags: Input, Initial state */
1
,
/* input: True */
1
,
/* initial state: Normal */
0
,
0
,
0
,
0
,
0
,
/* Icon */
};
xcb_change_property
(
conn
,
XCB_PROP_MODE_REPLACE
,
window
,
XA_WM_HINTS
,
XA_WM_HINTS
,
32
,
8
,
wm_hints
);
}
/** Set the Window ICCCM client machine property */
static
inline
void
set_hostname_prop
(
xcb_connection_t
*
conn
,
xcb_window_t
window
)
...
...
@@ -256,6 +269,7 @@ static int Open (vlc_object_t *obj)
vlc_pgettext
(
"ASCII"
,
"VLC media player"
));
set_ascii_prop
(
conn
,
window
,
XA_WM_ICON_NAME
,
vlc_pgettext
(
"ASCII"
,
"VLC"
));
set_wm_hints
(
conn
,
window
);
xcb_change_property
(
conn
,
XCB_PROP_MODE_REPLACE
,
window
,
XA_WM_CLASS
,
XA_STRING
,
8
,
8
,
"vlc
\0
Vlc"
);
set_hostname_prop
(
conn
,
window
);
...
...
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