Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glfw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pirvi-public
glfw
Commits
8b81a03a
Commit
8b81a03a
authored
7 years ago
by
Camilla Löwy
Browse files
Options
Downloads
Patches
Plain Diff
Cocoa: Remove double resize of full screen window
Related to #1085.
parent
9903f889
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
src/cocoa_window.m
+6
-22
6 additions, 22 deletions
src/cocoa_window.m
with
7 additions
and
22 deletions
README.md
+
1
−
0
View file @
8b81a03a
...
...
@@ -244,6 +244,7 @@ information on what to include when reporting a bug.
notification was shown (#971,#1028)
-
[Cocoa] Bugfix: Some characters did not repeat due to Press and Hold (#1010)
-
[Cocoa] Bugfix: Window title was lost when full screen or undecorated (#1082)
-
[Cocoa] Bugfix: Window was resized twice when entering full screen (#1085)
-
[WGL] Added support for
`WGL_EXT_colorspace`
for OpenGL ES contexts
-
[WGL] Added support for
`WGL_ARB_create_context_no_error`
-
[GLX] Added support for
`GLX_ARB_create_context_no_error`
...
...
This diff is collapsed.
Click to expand it.
src/cocoa_window.m
+
6
−
22
View file @
8b81a03a
...
...
@@ -1385,37 +1385,21 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
[
window
->
ns
.
object
setStyleMask
:
styleMask
];
[
window
->
ns
.
object
makeFirstResponder
:
window
->
ns
.
view
];
NSRect
contentRect
;
if
(
monitor
)
{
GLFWvidmode
mode
;
_glfwPlatformGetVideoMode
(
window
->
monitor
,
&
mode
);
_glfwPlatformGetMonitorPos
(
window
->
monitor
,
&
xpos
,
&
ypos
);
[
window
->
ns
.
object
setLevel
:
NSMainMenuWindowLevel
+
1
];
[
window
->
ns
.
object
setHasShadow
:
NO
];
contentRect
=
NSMakeRect
(
xpos
,
transformY
(
ypos
+
mode
.
height
),
mode
.
width
,
mode
.
height
);
acquireMonitor
(
window
);
}
else
{
contentRect
=
NSMakeRect
(
xpos
,
transformY
(
ypos
+
height
),
NSRect
contentRect
=
NSMakeRect
(
xpos
,
transformY
(
ypos
+
height
),
width
,
height
);
}
NSRect
frameRect
=
[
window
->
ns
.
object
frameRectForContentRect
:
contentRect
styleMask:
styleMask
];
[
window
->
ns
.
object
setFrame
:
frameRect
display
:
YES
];
if
(
monitor
)
{
[
window
->
ns
.
object
setLevel
:
NSMainMenuWindowLevel
+
1
];
[
window
->
ns
.
object
setHasShadow
:
NO
];
acquireMonitor
(
window
);
}
else
{
if
(
window
->
numer
!=
GLFW_DONT_CARE
&&
window
->
denom
!=
GLFW_DONT_CARE
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment