Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
051d673d
Commit
051d673d
authored
Aug 11, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcb_window: implement fullscreen mode
parent
f246d924
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+10
-9
No files found.
modules/video_output/xcb/window.c
View file @
051d673d
...
...
@@ -75,7 +75,7 @@ struct vout_window_sys_t
xcb_window_t
root
;
xcb_atom_t
wm_state
;
xcb_atom_t
wm_state_above
;
/*xcb_atom_t wmstate_fullscreen;*/
xcb_atom_t
wm_state_fullscreen
;
};
/** Set an X window property from a nul-terminated string */
...
...
@@ -245,13 +245,15 @@ static int Open (vlc_object_t *obj)
set_string
(
conn
,
window
,
utf8
,
net_wm_icon_name
,
_
(
"VLC"
));
/* Cache any EWMH atom we may need later */
xcb_intern_atom_cookie_t
wm_state_ck
,
wm_state_above_ck
;
xcb_intern_atom_cookie_t
wm_state_ck
,
wm_state_above_ck
,
wm_state_fs_ck
;
wm_state_ck
=
intern_string
(
conn
,
"_NET_WM_STATE"
);
wm_state_above_ck
=
intern_string
(
conn
,
"_NET_WM_STATE_ABOVE"
);
wm_state_fs_ck
=
intern_string
(
conn
,
"_NET_WM_STATE_FULLSCREEN"
);
p_sys
->
wm_state
=
get_atom
(
conn
,
wm_state_ck
);
p_sys
->
wm_state_above
=
get_atom
(
conn
,
wm_state_above_ck
);
p_sys
->
wm_state_fullscreen
=
get_atom
(
conn
,
wm_state_fs_ck
);
/* Create the event thread. It will dequeue all events, so any checked
* request from this thread must be completed at this point. */
...
...
@@ -373,23 +375,22 @@ static int Control (vout_window_t *wnd, int cmd, va_list ap)
xcb_configure_window
(
conn
,
wnd
->
handle
.
xid
,
XCB_CONFIG_WINDOW_WIDTH
|
XCB_CONFIG_WINDOW_HEIGHT
,
values
);
xcb_flush
(
conn
);
break
;
}
case
VOUT_WINDOW_SET_ON_TOP
:
{
b
ool
on
=
va_arg
(
ap
,
int
)
;
set_wm_state
(
wnd
,
va_arg
(
ap
,
int
),
p_sys
->
wm_state_above
);
b
reak
;
set_wm_state
(
wnd
,
on
,
p_sys
->
wm_state_above
);
xcb_flush
(
p_sys
->
conn
);
return
VLC_SUCCESS
;
}
case
VOUT_WINDOW_SET_FULLSCREEN
:
set_wm_state
(
wnd
,
va_arg
(
ap
,
int
),
p_sys
->
wm_state_fullscreen
);
break
;
default:
msg_Err
(
wnd
,
"request %d not implemented"
,
cmd
);
return
VLC_EGENERIC
;
}
xcb_flush
(
p_sys
->
conn
);
return
VLC_SUCCESS
;
}
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