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
37089177
Commit
37089177
authored
May 20, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: disable window restoration on relaunch for playlist and video windows
parent
a77a1283
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
modules/gui/macosx/embeddedwindow.m
modules/gui/macosx/embeddedwindow.m
+4
-0
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+10
-0
No files found.
modules/gui/macosx/embeddedwindow.m
View file @
37089177
...
...
@@ -135,6 +135,10 @@
view_rect
.
size
.
width
,
view_rect
.
size
.
height
)];
}
/* we don't want this window to be restored on relaunch */
if
([
self
respondsToSelector
:
@selector
(
setRestorable
:)])
[
self
setRestorable
:
NO
];
}
-
(
void
)
controlTintChanged
...
...
modules/gui/macosx/misc.m
View file @
37089177
...
...
@@ -227,7 +227,12 @@ static NSMutableArray *blackoutWindows = NULL;
{
self
=
[
super
initWithContentRect
:
contentRect
styleMask
:
styleMask
backing
:
backingType
defer
:
flag
];
if
(
self
)
{
b_isset_canBecomeKeyWindow
=
NO
;
/* we don't want this window to be restored on relaunch */
if
([
self
respondsToSelector
:
@selector
(
setRestorable
:)])
[
self
setRestorable
:
NO
];
}
return
self
;
}
-
(
void
)
setCanBecomeKeyWindow
:
(
BOOL
)
canBecomeKey
...
...
@@ -427,6 +432,11 @@ static NSMutableArray *blackoutWindows = NULL;
[self setContentBorderThickness:28.0 forEdge:NSMinYEdge];
}
*/
/* we don't want this window to be restored on relaunch */
if
([
self
respondsToSelector
:
@selector
(
setRestorable
:)])
[
self
setRestorable
:
NO
];
return
self
;
}
...
...
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