diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-04-18 18:23:28 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-04-18 18:23:28 +0200 |
| commit | 374f22b8bf76c3c3e74640c098138b4a13748817 (patch) | |
| tree | 212d6e4a1fb26518b99406837e1921b715dd9476 /src | |
| parent | 002b69f8fe90108faacaf2f728814fe52ff35095 (diff) | |
Remove unused code from Fl_Wayland_Window_Driver (#1248)
This commit removes the unused static method
Fl_Wayland_Window_Driver::resize_after_screen_change(void *data)
and related data as discussed in the context of PR #1248.
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.H | 10 | ||||
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 14 |
2 files changed, 3 insertions, 21 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H index 42967d6b1..3d8ce6f5b 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H @@ -1,7 +1,7 @@ // // Definition of Wayland window driver for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2024 by Bill Spitzak and others. +// Copyright 2010-2025 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -65,11 +65,7 @@ private: public: inline Fl_Cursor standard_cursor() { return standard_cursor_; }; bool in_handle_configure; // distinguish OS and user window resize - // --- support for screen-specific scaling factors - struct type_for_resize_window_between_screens { - int screen; - bool busy; - }; + struct surface_output { // for linked list of displays where a surface maps struct Fl_Wayland_Screen_Driver::output *output; struct wl_list link; @@ -80,7 +76,6 @@ public: int hotx, hoty; }; static void delete_cursor(struct custom_cursor *custom, bool delete_rgb = true); - static type_for_resize_window_between_screens data_for_resize_window_between_screens_; void decorated_win_size(int &w, int &h); void shape_bitmap_(Fl_Image* b); void shape_alpha_(Fl_Image* img, int offset) FL_OVERRIDE; @@ -98,7 +93,6 @@ public: static inline Fl_Wayland_Window_Driver* driver(const Fl_Window *w) { return (Fl_Wayland_Window_Driver*)Fl_Window_Driver::driver(w); } - static void resize_after_screen_change(void *data); static Fl_Wayland_Plugin *gl_plugin(); // --- window data diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index cb42e813f..d1cff937e 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1,7 +1,7 @@ // // Implementation of the Wayland window driver. // -// Copyright 1998-2024 by Bill Spitzak and others. +// Copyright 1998-2025 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -1603,18 +1603,6 @@ void Fl_Wayland_Window_Driver::makeWindow() } -Fl_Wayland_Window_Driver::type_for_resize_window_between_screens Fl_Wayland_Window_Driver::data_for_resize_window_between_screens_ = {0, false}; - - -void Fl_Wayland_Window_Driver::resize_after_screen_change(void *data) { - Fl_Window *win = (Fl_Window*)data; - float f = Fl::screen_driver()->scale(data_for_resize_window_between_screens_.screen); - Fl_Window_Driver::driver(win)->resize_after_scale_change( - data_for_resize_window_between_screens_.screen, f, f); - data_for_resize_window_between_screens_.busy = false; -} - - int Fl_Wayland_Window_Driver::set_cursor(Fl_Cursor c) { Fl_Wayland_Screen_Driver *scr_driver = (Fl_Wayland_Screen_Driver*)Fl::screen_driver(); struct wld_window *xid = (struct wld_window *)Fl_Window_Driver::xid(pWindow); |
