|
|
Hi @ManoloFLTK,
I have managed to reproduce the issue on MacOS 12.0.1 using editor.cxx (on branch-1.3) with the following patch applied:
diff --git a/test/editor.cxx b/test/editor.cxx
index c9aa6a4bf..740ea86eb 100644
--- a/test/editor.cxx
+++ b/test/editor.cxx
@@ -614,6 +614,14 @@ void delete_cb(Fl_Widget*, void*) {
textbuf->remove_selection();
}
+void fullscreen_cb(Fl_Widget*, void* v) {
+ EditorWindow* e = (EditorWindow*)v;
+ if (e->fullscreen_active())
+ e->fullscreen_off();
+ else
+ e->fullscreen();
+}
+
void linenumbers_cb(Fl_Widget *w, void* v) {
EditorWindow* e = (EditorWindow*)v;
Fl_Menu_Bar* m = (Fl_Menu_Bar*)w;
@@ -876,6 +884,7 @@ Fl_Menu_Item menuitems[] = {
{ "&Copy", FL_COMMAND + 'c', (Fl_Callback *)copy_cb },
{ "&Paste", FL_COMMAND + 'v', (Fl_Callback *)paste_cb },
{ "&Delete", 0, (Fl_Callback *)delete_cb },
+ { "&Full Screen", FL_COMMAND + 'n', (Fl_Callback *)fullscreen_cb },
{ "Preferences", 0, 0, 0, FL_SUBMENU },
{ "Line Numbers", FL_COMMAND + 'l', (Fl_Callback *)linenumbers_cb, 0, FL_MENU_TOGGLE },
{ "Word Wrap", 0, (Fl_Callback *)wordwrap_cb, 0, FL_MENU_TOGGLE },
@@ -964,7 +973,8 @@ int main(int argc, char **argv) {
fl_open_callback(cb);
Fl_Window* window = new_view();
-
+ window->resize(0, 0, 1920, 1200);
+ window->fullscreen();
window->show(1, argv);
#ifndef __APPLE__
if (argc > 1) load_file(argv[1], -1);
Please note that you have to adjust the resize call at the end to the resolution of your primary monitor.
Steps to reproduce:
- Run the patched editor example
- Disable fullscreen by pressing
⌘+n
- Without moving or resizing the window, enable fullscreen again by pressing
⌘+n
After this you are expected to see similar symptoms as shown in the screenshots in TigerVNC/tigervnc#1361.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
[ Direct Link to Message ] | |
|
| |