File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
native/Avalonia.Native/src/OSX Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 13
13
class WindowImpl : public virtual WindowBaseImpl, public virtual IAvnWindow, public IWindowStateChanged
14
14
{
15
15
private:
16
+ bool _isEnabled;
16
17
bool _canResize;
17
18
bool _fullScreenActive;
18
19
SystemDecorations _decorations;
Original file line number Diff line number Diff line change 9
9
#include " WindowProtocol.h"
10
10
11
11
WindowImpl::WindowImpl (IAvnWindowEvents *events, IAvnGlContext *gl) : WindowBaseImpl(events, gl) {
12
+ _isEnabled = true ;
12
13
_children = std::list<WindowImpl*>();
13
14
_isClientAreaExtended = false ;
14
15
_extendClientHints = AvnDefaultChrome;
75
76
START_COM_CALL;
76
77
77
78
@autoreleasepool {
79
+ _isEnabled = enable;
78
80
[GetWindowProtocol () setEnabled: enable];
81
+ UpdateStyle ();
79
82
return S_OK;
80
83
}
81
84
}
573
576
case SystemDecorationsFull:
574
577
s = s | NSWindowStyleMaskTitled | NSWindowStyleMaskClosable;
575
578
576
- if (_canResize) {
579
+ if (_canResize && _isEnabled ) {
577
580
s = s | NSWindowStyleMaskResizable;
578
581
}
579
582
break ;
You can’t perform that action at this time.
0 commit comments