Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
4e845887
Commit
4e845887
authored
Apr 25, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB: develop resize handling
parent
675c7aea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
21 deletions
+25
-21
modules/video_output/xcb/events.c
modules/video_output/xcb/events.c
+0
-21
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+21
-0
modules/video_output/xcb/xcb_vlc.h
modules/video_output/xcb/xcb_vlc.h
+4
-0
No files found.
modules/video_output/xcb/events.c
View file @
4e845887
...
...
@@ -91,27 +91,6 @@ static void HandleMotionNotify (vout_thread_t *vout,
var_SetInteger
(
vout
,
"mouse-y"
,
v
);
}
static
void
HandleParentStructure
(
vout_thread_t
*
vout
,
xcb_connection_t
*
conn
,
xcb_window_t
xid
,
xcb_configure_notify_event_t
*
ev
)
{
unsigned
width
,
height
,
x
,
y
;
vout_PlacePicture
(
vout
,
ev
->
width
,
ev
->
height
,
&
x
,
&
y
,
&
width
,
&
height
);
if
(
width
!=
vout
->
fmt_out
.
i_visible_width
||
height
!=
vout
->
fmt_out
.
i_visible_height
)
{
vout
->
i_changes
|=
VOUT_SIZE_CHANGE
;
return
;
/* vout will be reinitialized */
}
/* Move the picture within the window */
const
uint32_t
values
[]
=
{
x
,
y
,
};
xcb_configure_window
(
conn
,
xid
,
XCB_CONFIG_WINDOW_X
|
XCB_CONFIG_WINDOW_Y
,
values
);
}
/**
* Process an X11 event.
*/
...
...
modules/video_output/xcb/x11.c
View file @
4e845887
...
...
@@ -403,3 +403,24 @@ static int Manage (vout_thread_t *vout)
}
return
VLC_SUCCESS
;
}
void
HandleParentStructure
(
vout_thread_t
*
vout
,
xcb_connection_t
*
conn
,
xcb_window_t
xid
,
xcb_configure_notify_event_t
*
ev
)
{
unsigned
width
,
height
,
x
,
y
;
vout_PlacePicture
(
vout
,
ev
->
width
,
ev
->
height
,
&
x
,
&
y
,
&
width
,
&
height
);
if
(
width
!=
vout
->
fmt_out
.
i_visible_width
||
height
!=
vout
->
fmt_out
.
i_visible_height
)
{
vout
->
i_changes
|=
VOUT_SIZE_CHANGE
;
return
;
/* vout will be reinitialized */
}
/* Move the picture within the window */
const
uint32_t
values
[]
=
{
x
,
y
,
};
xcb_configure_window
(
conn
,
xid
,
XCB_CONFIG_WINDOW_X
|
XCB_CONFIG_WINDOW_Y
,
values
);
}
modules/video_output/xcb/xcb_vlc.h
View file @
4e845887
...
...
@@ -29,7 +29,11 @@
int
CheckError
(
vout_thread_t
*
,
const
char
*
str
,
xcb_void_cookie_t
);
int
ProcessEvent
(
vout_thread_t
*
,
xcb_connection_t
*
,
xcb_window_t
,
xcb_generic_event_t
*
);
void
HandleParentStructure
(
vout_thread_t
*
vout
,
xcb_connection_t
*
conn
,
xcb_window_t
xid
,
xcb_configure_notify_event_t
*
ev
);
/* keys.c */
typedef
struct
key_handler_t
key_handler_t
;
key_handler_t
*
CreateKeyHandler
(
vlc_object_t
*
,
xcb_connection_t
*
);
void
DestroyKeyHandler
(
key_handler_t
*
);
...
...
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