From 04fa926eea08b2c83c1cb22ca3b5fda3f1148878 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Thu, 20 Apr 2023 15:49:55 +0200 Subject: core: Remove meta_frame_get_flags() It is private and the last caller was removed in 92feea30. Part-of: --- src/core/frame.c | 65 -------------------------------------------------------- 1 file changed, 65 deletions(-) (limited to 'src/core/frame.c') diff --git a/src/core/frame.c b/src/core/frame.c index 9b08d0727..80a3dbc0f 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -250,71 +250,6 @@ meta_window_destroy_frame (MetaWindow *window) meta_window_queue (window, META_QUEUE_MOVE_RESIZE); } - -MetaFrameFlags -meta_frame_get_flags (MetaFrame *frame) -{ - MetaFrameFlags flags; - - flags = 0; - - if (frame->window->border_only) - { - ; /* FIXME this may disable the _function_ as well as decor - * in some cases, which is sort of wrong. - */ - } - else - { - flags |= META_FRAME_ALLOWS_MENU; - - if (frame->window->has_close_func) - flags |= META_FRAME_ALLOWS_DELETE; - - if (frame->window->has_maximize_func) - flags |= META_FRAME_ALLOWS_MAXIMIZE; - - if (frame->window->has_minimize_func) - flags |= META_FRAME_ALLOWS_MINIMIZE; - - } - - if (META_WINDOW_ALLOWS_MOVE (frame->window)) - flags |= META_FRAME_ALLOWS_MOVE; - - if (META_WINDOW_ALLOWS_HORIZONTAL_RESIZE (frame->window)) - flags |= META_FRAME_ALLOWS_HORIZONTAL_RESIZE; - - if (META_WINDOW_ALLOWS_VERTICAL_RESIZE (frame->window)) - flags |= META_FRAME_ALLOWS_VERTICAL_RESIZE; - - if (meta_window_appears_focused (frame->window)) - flags |= META_FRAME_HAS_FOCUS; - - if (frame->window->on_all_workspaces_requested) - flags |= META_FRAME_STUCK; - - /* FIXME: Should we have some kind of UI for windows that are just vertically - * maximized or just horizontally maximized? - */ - if (META_WINDOW_MAXIMIZED (frame->window)) - flags |= META_FRAME_MAXIMIZED; - - if (META_WINDOW_TILED_LEFT (frame->window)) - flags |= META_FRAME_TILED_LEFT; - - if (META_WINDOW_TILED_RIGHT (frame->window)) - flags |= META_FRAME_TILED_RIGHT; - - if (frame->window->fullscreen) - flags |= META_FRAME_FULLSCREEN; - - if (frame->window->wm_state_above) - flags |= META_FRAME_ABOVE; - - return flags; -} - void meta_frame_borders_clear (MetaFrameBorders *self) { -- cgit v1.2.1