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
981c7b91
Commit
981c7b91
authored
Jun 20, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't continously resize mozilla plugin window - Closes #139
parent
e1b29a6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+13
-1
No files found.
mozilla/vlcshell.cpp
View file @
981c7b91
...
...
@@ -92,6 +92,9 @@
# define VOUT_PLUGINS "xvideo,x11,dummy"
# define AOUT_PLUGINS "oss,dummy"
static
int
i_previous_height
=
-
1
;
static
int
i_previous_width
=
-
1
;
static
void
Redraw
(
Widget
w
,
XtPointer
closure
,
XEvent
*
event
);
static
void
Resize
(
Widget
w
,
XtPointer
closure
,
XEvent
*
event
);
#endif
...
...
@@ -661,6 +664,7 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
XResizeWindow
(
p_plugin
->
p_display
,
p_plugin
->
window
,
p_plugin
->
i_width
,
p_plugin
->
i_height
);
Widget
w
=
XtWindowToWidget
(
p_plugin
->
p_display
,
p_plugin
->
window
);
XtAddEventHandler
(
w
,
ExposureMask
,
FALSE
,
(
XtEventHandler
)
Redraw
,
p_plugin
);
XtAddEventHandler
(
w
,
StructureNotifyMask
,
FALSE
,
...
...
@@ -943,6 +947,14 @@ static void Resize ( Widget w, XtPointer closure, XEvent *event )
event
->
xconfigure
.
height
,
event
->
xconfigure
.
send_event
?
"TRUE"
:
"FALSE"
);
}
if
(
p_plugin
->
i_height
==
i_previous_height
&&
p_plugin
->
i_width
==
i_previous_width
)
{
return
;
}
i_previous_height
=
p_plugin
->
i_height
;
i_previous_width
=
p_plugin
->
i_width
;
#endif
/* X11_RESIZE_DEBUG */
i_ret
=
XResizeWindow
(
p_plugin
->
p_display
,
p_plugin
->
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