Cannot receive drag and drop events after enterFullScreenMod

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Cannot receive drag and drop events after enterFullScreenMod

Postby fcherny » Fri Dec 11, 2020 11:07 am

I'm running CEF 3.3163.1671.g700dc25 and have run into a problem. I'm wondering if anyone has experience with this or has a work-around.

Basically, when I enter full screen mode (on a Mac), I stop receiving drag and drop events. Specifically, it happens when I run this api to enter full screen mode:

self.mContentView = [(AppDelegate *)[[NSApplication sharedApplication] delegate] window].contentView;

NSApplicationPresentationOptions options =
NSApplicationPresentationDisableAppleMenu |
NSApplicationPresentationDisableForceQuit |
NSApplicationPresentationDisableHideApplication |
NSApplicationPresentationDisableProcessSwitching |
NSApplicationPresentationDisableSessionTermination |
NSApplicationPresentationHideDock |
NSApplicationPresentationHideMenuBar;

[self.mContentView enterFullScreenMode:[NSScreen mainScreen] withOptions:@{NSFullScreenModeApplicationPresentationOptions : @(options) }];

After that, I don't see any calls to the OnDragEnter handler. If I simply do
[self.mContentView enterFullScreenMode:[NSScreen mainScreen] withOptions:nil];
drag and drop still works.

I feel like I'm missing something obvious. Any ideas on how I can debug this would be appreciated as well.
fcherny
Newbie
 
Posts: 4
Joined: Fri Dec 11, 2020 10:03 am

Re: Cannot receive drag and drop events after enterFullScree

Postby fcherny » Mon Dec 14, 2020 9:32 am

After further investigation, it's this command that was disabling drag and drop:
[[(AppDelegate *)[[NSApplication sharedApplication] delegate] window] setLevel:1000000];

Apparently the value 1000000 is invalid, which results in this peculiar side effect.
fcherny
Newbie
 
Posts: 4
Joined: Fri Dec 11, 2020 10:03 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 48 guests