mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Revert "Use custom method to focus main window on X11"
This reverts commit f9bba75395
.
See #10441.
This commit is contained in:
@@ -11,7 +11,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "platform/platform_specific.h"
|
#include "platform/platform_specific.h"
|
||||||
#include "platform/platform_window_title.h"
|
#include "platform/platform_window_title.h"
|
||||||
#include "base/platform/base_platform_info.h"
|
#include "base/platform/base_platform_info.h"
|
||||||
#include "base/platform/base_platform_process.h"
|
|
||||||
#include "ui/platform/ui_platform_utility.h"
|
#include "ui/platform/ui_platform_utility.h"
|
||||||
#include "history/history.h"
|
#include "history/history.h"
|
||||||
#include "window/themes/window_theme.h"
|
#include "window/themes/window_theme.h"
|
||||||
@@ -315,16 +314,8 @@ void MainWindow::activate() {
|
|||||||
setWindowState(windowState() & ~Qt::WindowMinimized);
|
setWindowState(windowState() & ~Qt::WindowMinimized);
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
psActivateProcess();
|
psActivateProcess();
|
||||||
// allow to focus even if X11 native code is disabled
|
raise();
|
||||||
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
|
activateWindow();
|
||||||
if (Platform::IsX11()) {
|
|
||||||
base::Platform::ActivateThisProcessWindow(winId());
|
|
||||||
} else
|
|
||||||
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
|
|
||||||
{
|
|
||||||
raise();
|
|
||||||
activateWindow();
|
|
||||||
}
|
|
||||||
controller().updateIsActiveFocus();
|
controller().updateIsActiveFocus();
|
||||||
if (wasHidden) {
|
if (wasHidden) {
|
||||||
if (const auto session = sessionController()) {
|
if (const auto session = sessionController()) {
|
||||||
|
Submodule Telegram/lib_base updated: 03679eb683...9005da2a22
Reference in New Issue
Block a user