Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8876751e
Commit
8876751e
authored
Dec 29, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Prevent disabled windows from being moved.
This won't be enforced if AllowImmovableWindows=n is set in the registry.
parent
5f7b30ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
cocoa_window.m
dlls/winemac.drv/cocoa_window.m
+3
-0
macdrv_cocoa.h
dlls/winemac.drv/macdrv_cocoa.h
+1
-0
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+4
-0
No files found.
dlls/winemac.drv/cocoa_window.m
View file @
8876751e
...
...
@@ -642,6 +642,9 @@ static inline NSUInteger adjusted_modifiers_for_option_behavior(NSUInteger modif
[
self
setContentMaxSize
:
savedContentMaxSize
];
[
self
setContentMinSize
:
savedContentMinSize
];
}
if
(
allow_immovable_windows
)
[
self
setMovable
:
!
disabled
];
}
-
(
void
)
adjustFullScreenBehavior
:
(
NSWindowCollectionBehavior
)
behavior
...
...
dlls/winemac.drv/macdrv_cocoa.h
View file @
8876751e
...
...
@@ -146,6 +146,7 @@ extern int topmost_float_inactive DECLSPEC_HIDDEN;
extern
int
capture_displays_for_fullscreen
DECLSPEC_HIDDEN
;
extern
int
left_option_is_alt
DECLSPEC_HIDDEN
;
extern
int
right_option_is_alt
DECLSPEC_HIDDEN
;
extern
int
allow_immovable_windows
DECLSPEC_HIDDEN
;
extern
int
macdrv_start_cocoa_app
(
unsigned
long
long
tickcount
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_rejected_focus
(
const
struct
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
...
...
dlls/winemac.drv/macdrv_main.c
View file @
8876751e
...
...
@@ -54,6 +54,7 @@ int left_option_is_alt = 0;
int
right_option_is_alt
=
0
;
BOOL
allow_software_rendering
=
FALSE
;
BOOL
disable_window_decorations
=
FALSE
;
int
allow_immovable_windows
=
TRUE
;
HMODULE
macdrv_module
=
0
;
...
...
@@ -171,6 +172,9 @@ static void setup_options(void)
if
(
!
get_config_key
(
hkey
,
appkey
,
"Decorated"
,
buffer
,
sizeof
(
buffer
)))
disable_window_decorations
=
!
IS_OPTION_TRUE
(
buffer
[
0
]);
if
(
!
get_config_key
(
hkey
,
appkey
,
"AllowImmovableWindows"
,
buffer
,
sizeof
(
buffer
)))
allow_immovable_windows
=
IS_OPTION_TRUE
(
buffer
[
0
]);
if
(
appkey
)
RegCloseKey
(
appkey
);
if
(
hkey
)
RegCloseKey
(
hkey
);
}
...
...
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