mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:57:35 +00:00
WindowServer: Minor style tweak.
This commit is contained in:
parent
96943dbad1
commit
a9911fca80
1 changed files with 3 additions and 5 deletions
|
@ -491,8 +491,8 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event, WSWindow*& event_
|
||||||
{
|
{
|
||||||
event_window = nullptr;
|
event_window = nullptr;
|
||||||
|
|
||||||
if (event.type() == WSMessage::MouseUp && event.button() == MouseButton::Left) {
|
if (m_drag_window) {
|
||||||
if (m_drag_window) {
|
if (event.type() == WSMessage::MouseUp && event.button() == MouseButton::Left) {
|
||||||
#ifdef DRAG_DEBUG
|
#ifdef DRAG_DEBUG
|
||||||
printf("[WM] Finish dragging WSWindow{%p}\n", m_drag_window.ptr());
|
printf("[WM] Finish dragging WSWindow{%p}\n", m_drag_window.ptr());
|
||||||
#endif
|
#endif
|
||||||
|
@ -501,10 +501,8 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event, WSWindow*& event_
|
||||||
m_drag_window = nullptr;
|
m_drag_window = nullptr;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (event.type() == WSMessage::MouseMove) {
|
if (event.type() == WSMessage::MouseMove) {
|
||||||
if (m_drag_window) {
|
|
||||||
auto old_window_rect = m_drag_window->rect();
|
auto old_window_rect = m_drag_window->rect();
|
||||||
Point pos = m_drag_window_origin;
|
Point pos = m_drag_window_origin;
|
||||||
#ifdef DRAG_DEBUG
|
#ifdef DRAG_DEBUG
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue