Browse Source

LibGUI: Desktop.h should get actual value from TaskbarWindow.h

Matthew Jones 4 năm trước cách đây
mục cha
commit
6c520fab87
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Userland/Libraries/LibGUI/Desktop.h

+ 2 - 1
Userland/Libraries/LibGUI/Desktop.h

@@ -10,6 +10,7 @@
 #include <AK/String.h>
 #include <LibGUI/Forward.h>
 #include <LibGfx/Rect.h>
+#include <Services/Taskbar/TaskbarWindow.h>
 
 namespace GUI {
 
@@ -27,7 +28,7 @@ public:
 
     Gfx::IntRect rect() const { return m_rect; }
 
-    int taskbar_height() const { return 27; }
+    int taskbar_height() const { return TaskbarWindow::taskbar_height(); }
 
     void did_receive_screen_rect(Badge<WindowServerConnection>, const Gfx::IntRect&);