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
7ed4cf1b
Commit
7ed4cf1b
authored
Aug 27, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlcshell.cpp: more X11 fixes
parent
7419fda4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+14
-11
No files found.
mozilla/vlcshell.cpp
View file @
7ed4cf1b
...
...
@@ -396,21 +396,24 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
if
(
window
&&
window
->
window
)
{
Window
drawable
=
(
Window
)
window
->
window
;
if
(
!
curwin
->
window
||
drawable
!=
(
Window
)
curwin
->
window
)
{
Display
*
p_display
=
((
NPSetWindowCallbackStruct
*
)
window
->
ws_info
)
->
display
;
if
(
!
curwin
->
window
||
drawable
!=
(
Window
)
curwin
->
window
)
{
Display
*
p_display
=
((
NPSetWindowCallbackStruct
*
)
window
->
ws_info
)
->
display
;
XResizeWindow
(
p_display
,
drawable
,
window
->
width
,
window
->
height
);
Widget
w
=
XtWindowToWidget
(
p_display
,
drawable
);
XResizeWindow
(
p_display
,
drawable
,
window
->
width
,
window
->
height
);
Widget
w
=
XtWindowToWidget
(
p_display
,
drawable
);
XtAddEventHandler
(
w
,
ExposureMask
,
FALSE
,
(
XtEventHandler
)
Redraw
,
p_plugin
);
XtAddEventHandler
(
w
,
StructureNotifyMask
,
FALSE
,
(
XtEventHandler
)
Resize
,
p_plugin
);
XtAddEventHandler
(
w
,
ExposureMask
,
FALSE
,
(
XtEventHandler
)
Redraw
,
p_plugin
);
XtAddEventHandler
(
w
,
StructureNotifyMask
,
FALSE
,
(
XtEventHandler
)
Resize
,
p_plugin
);
/* remember
window */
p_plugin
->
setWindow
(
window
);
/* set/change parent
window */
libvlc_video_set_parent
(
p_vlc
,
(
libvlc_drawable_t
)
drawable
,
NULL
);
Redraw
(
w
,
(
XtPointer
)
p_plugin
,
NULL
);
}
/* remember window */
p_plugin
->
setWindow
(
window
);
Redraw
(
w
,
(
XtPointer
)
p_plugin
,
NULL
);
}
}
#endif
/* XP_UNIX */
...
...
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